提交 39129f28 编写于 作者: W Wolfram Sang

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: NWolfram Sang <wsa@the-dreams.de>
Fixes: c71bcdcb ("i2c: add i2c bus driver for NVIDIA GPU")
Acked-by: NAjay Gupta <ajayg@nvidia.com>
Tested-by: NAjay Gupta <ajayg@nvidia.com>
上级 98be694b
......@@ -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,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册