]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: qup: support SMBus block read
authorNaveen Kaje <nkaje@codeaurora.org>
Tue, 11 Oct 2016 16:27:57 +0000 (10:27 -0600)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 29 Nov 2016 21:43:38 +0000 (22:43 +0100)
commit7a56fc0f78b5d382767932adb117a2674e696bd6
tree40084b4cc5129430b779019adf3186d47e846a10
parente029e728d9cbb3b0c978ff2c1f9a7ac8fcee90ab
i2c: qup: support SMBus block read

I2C QUP driver relies on SMBus emulation support from the framework.
To handle SMBus block reads, the driver should check I2C_M_RECV_LEN
flag and should read the first byte received as the message length.

The driver configures the QUP hardware to read one byte. Once the
message length is known from this byte, the QUP hardware is configured
to read the rest.

Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>
Signed-off-by: Austin Christ <austinwc@codeaurora.org>
Reviewed-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-qup.c