summaryrefslogtreecommitdiffstats
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@cavium.com>2018-02-27 14:26:19 +0100
committerWolfram Sang <wsa@the-dreams.de>2018-03-17 21:57:44 +0100
commite349d7d08e7044caf37a36409305edbd5af013c7 (patch)
tree6f9452cfc36d0baac54a3233275194d6dfb2d4e1 /block/blk-throttle.c
parenti2c: xlp9xx: Check for Bus state before every transfer (diff)
downloadlinux-e349d7d08e7044caf37a36409305edbd5af013c7.tar.xz
linux-e349d7d08e7044caf37a36409305edbd5af013c7.zip
i2c: xlp9xx: Handle NACK on DATA properly
In case we receive NACK on DATA we shouldn't be resetting the controller, rather we should issue STOP command. This will terminate the current transaction and -EIO is returned. While at that handle the SMBus Quick Command properly. We shouldn't be setting the XLP9XX_I2C_CMD_READ/WRITE for such transactions. Signed-off-by: George Cherian <george.cherian@cavium.com> Reviewed-by: Jan Glauber <jglauber@cavium.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'block/blk-throttle.c')
0 files changed, 0 insertions, 0 deletions