]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d0cd91b858567506d1c0b0327d0cc11e8aa6db2
tree979cba8d85bb3dd8e12dbae22ad58377ef82411b
parentc55c08fde4992f0c8f0c86b0d7e4c772117684c6
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: bc3076fb24a3 ("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