Commit 39129f28 authored by Wolfram Sang's avatar Wolfram Sang
Browse files

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: default avatarWolfram Sang <wsa@the-dreams.de>
Fixes: c71bcdcb ("i2c: add i2c bus driver for NVIDIA GPU")
Acked-by: default avatarAjay Gupta <ajayg@nvidia.com>
Tested-by: default avatarAjay Gupta <ajayg@nvidia.com>
parent 98be694b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,
};