]> 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)
commit47c3b1346dbbccbb3b61e0e1915bf71a0d28cb1a
treed801d95e05e74855464d708de925a2716c5779f9
parent2ce62017e88ea85a3f59d3d6999b141757ea00ef
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