OSDN Git Service

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)
commit85062c9b990b1dc8bbb8971ee7d3044a999cf25f
treed801d95e05e74855464d708de925a2716c5779f9
parent7f8a58925b4c0198c12344025b6ffd5dd7d9f1f5
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