i2c: owl: Clear NACK and BUS error bits
authorCristian Ciocaltea <cristian.ciocaltea@gmail.com>
Thu, 8 Oct 2020 21:44:39 +0000 (00:44 +0300)
committerWolfram Sang <wsa@kernel.org>
Sat, 10 Oct 2020 11:15:46 +0000 (13:15 +0200)
commitf5b3f433641c543ebe5171285a42aa6adcdb2d22
tree979cba8d85bb3dd8e12dbae22ad58377ef82411b
parent5a02e7c429cb5e082e5d7be6e5b768828014ba70
i2c: owl: Clear NACK and BUS error bits

When the NACK and BUS error bits are set by the hardware, the driver is
responsible for clearing them by writing "1" into the corresponding
status registers.

Hence perform the necessary operations in owl_i2c_interrupt().

Fixes: d211e62af466 ("i2c: Add Actions Semiconductor Owl family S900 I2C driver")
Reported-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-owl.c