diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2018-11-09 18:07:32 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-11-27 14:00:22 +0100 |
commit | 39129f28c9431522a6790e7b8c3283221a28447b (patch) | |
tree | 3756556bc42ab47d03ca307f89cbb7f560b02d02 | |
parent | i2c: nvidia-gpu: adhere to I2C fault codes (diff) | |
download | linux-39129f28c9431522a6790e7b8c3283221a28447b.tar.xz linux-39129f28c9431522a6790e7b8c3283221a28447b.zip |
i2c: nvidia-gpu: limit reads also for combined messages
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: c71bcdcb42a7 ("i2c: add i2c bus driver for NVIDIA GPU")
Acked-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
-rw-r--r-- | drivers/i2c/busses/i2c-nvidia-gpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c index 4307b42901a1..e99c3bb58351 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -218,6 +218,7 @@ stop: 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, }; |