diff options
author | George Cherian <george.cherian@cavium.com> | 2018-02-27 13:26:18 +0000 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-03-17 21:56:35 +0100 |
commit | d3898a78521cd383d287b3ed5683f914c48c3be9 (patch) | |
tree | 76158470260643e4e9ac5860d345508b2da79265 /net/ipv4 | |
parent | 7a20e707aae2562ad1e6fc39bbc0fa9fd47a6390 (diff) | |
download | linux-stable-d3898a78521cd383d287b3ed5683f914c48c3be9.tar.gz linux-stable-d3898a78521cd383d287b3ed5683f914c48c3be9.tar.bz2 linux-stable-d3898a78521cd383d287b3ed5683f914c48c3be9.zip |
i2c: xlp9xx: Check for Bus state before every transfer
I2C bus enters the STOP condition after the DATA_DONE interrupt is raised.
Essentially the driver should be checking the bus state before sending
any transaction. In case a transaction is initiated while the
bus is busy, the prior transaction's stop condition is not achieved.
Add the check to make sure the bus is not busy before every transaction.
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 'net/ipv4')
0 files changed, 0 insertions, 0 deletions