mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]>
Fixes: c71bcdcb42 ("i2c: add i2c bus driver for NVIDIA GPU")
Acked-by: Ajay Gupta <[email protected]>
Tested-by: Ajay Gupta <[email protected]>
This commit is contained in:
parent
98be694ba2
commit
39129f28c9
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue