]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv8803: workaround i2c HW issue
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 21 Mar 2016 14:58:38 +0000 (15:58 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 25 Mar 2016 01:38:59 +0000 (02:38 +0100)
commitdb1e772200c29708dcbb2b9a7ab0ffca04993c4d
treed801d95e05e74855464d708de925a2716c5779f9
parent6492683f5dcbc04e91a5b8088d3137716a8be453
rtc: rv8803: workaround i2c HW issue

The rv8803 has a 60µs window where it will not answer on the i2c bus.
It also means there will be no ack for the communication. Make sure
communication is tried multiple times when this happens (the i2c subsystem
mandates -ENXIO is that case but the number of retries is host specific).
The critical parts are the probe function and the alarm callback so make
sure we handle the failure there.

Cc: stable@vger.kernel.org # v4.4
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-rv8803.c