]> 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)
commit704bfd79cd6aad37c13d21faf0a4c0f7d43916f8
tree979cba8d85bb3dd8e12dbae22ad58377ef82411b
parent69cbd049f143f2f27a7573abb0d3a8f82fb2608a
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: bc6ebef12d64 ("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