diff options
author | Naveen Kaje <nkaje@codeaurora.org> | 2016-10-11 19:27:57 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-11-30 00:43:38 +0300 |
commit | cc9086e772b54a2399408af0bfb00bccb50a968b (patch) | |
tree | 40084b4cc5129430b779019adf3186d47e846a10 /drivers/hwmon/twl4030-madc-hwmon.c | |
parent | 515da746983bc6382e380ba8b1ce9345a9550ffe (diff) | |
download | linux-cc9086e772b54a2399408af0bfb00bccb50a968b.tar.xz |
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>
Diffstat (limited to 'drivers/hwmon/twl4030-madc-hwmon.c')
0 files changed, 0 insertions, 0 deletions