Skip to content

Commit

Permalink
i2c: nvidia-gpu: limit reads also for combined messages
Browse files Browse the repository at this point in the history
If the controller can only do 4 byte reads, this needs to be applied for
the read-part of combined messages, too.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Fixes: c71bcdc ("i2c: add i2c bus driver for NVIDIA GPU")
Acked-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
  • Loading branch information
Wolfram Sang committed Nov 27, 2018
1 parent 98be694 commit 39129f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-nvidia-gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ static int gpu_i2c_master_xfer(struct i2c_adapter *adap,

static const struct i2c_adapter_quirks gpu_i2c_quirks = {
.max_read_len = 4,
.max_comb_2nd_msg_len = 4,
.flags = I2C_AQ_COMB_WRITE_THEN_READ,
};

Expand Down

0 comments on commit 39129f2

Please sign in to comment.