]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: nvidia-gpu: limit reads also for combined messages
authorWolfram Sang <wsa@the-dreams.de>
Fri, 9 Nov 2018 17:07:32 +0000 (18:07 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 27 Nov 2018 13:00:22 +0000 (14:00 +0100)
commit39129f28c9431522a6790e7b8c3283221a28447b
tree3756556bc42ab47d03ca307f89cbb7f560b02d02
parent98be694ba25fa0e87811e7784b782c9498741b26
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>
drivers/i2c/busses/i2c-nvidia-gpu.c