diff options
author | George Cherian <george.cherian@cavium.com> | 2018-02-27 13:26:19 +0000 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-03-17 21:57:44 +0100 |
commit | e349d7d08e7044caf37a36409305edbd5af013c7 (patch) | |
tree | 6f9452cfc36d0baac54a3233275194d6dfb2d4e1 /include/asm-generic/hardirq.h | |
parent | d3898a78521cd383d287b3ed5683f914c48c3be9 (diff) |
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 'include/asm-generic/hardirq.h')
0 files changed, 0 insertions, 0 deletions