]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7583a92327ebb84e4a24f809066bb0f690d94a6
treeba6e533760f5894544468bb8b435fc362a6491d8
parentc5d0528bce48256a19d010bf8cc0dfe03b4d8afd
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