OSDN Git Service

rtc: jz4740: fix loading of rtc driver
authorMathieu Malaterre <malat@debian.org>
Mon, 18 Sep 2017 19:10:13 +0000 (21:10 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 12:28:14 +0000 (14:28 +0200)
commit695e38d8818dd858d7516c77bab96be266f56694
treeba6e533760f5894544468bb8b435fc362a6491d8
parent49de9828810cb4ccf85ac213d4fd15f1a30fb4f6
rtc: jz4740: fix loading of rtc driver

The current timeout for waiting for WRDY is not always sufficient. Always
increase it to 10000 even on JZ4740. This is technically only required on
JZ4780, where the current symptoms seen after a hard reboot are:

  jz4740-rtc 10003000.rtc: rtc core: registered 10003000.rtc as rtc0
  jz4740-rtc 10003000.rtc: Could not write to RTC registers
  jz4740-rtc: probe of 10003000.rtc failed with error -5

Suggested-by: Alex Smith <alex.smith@imgtec.com>
Cc: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-jz4740.c