Re: [PATCH] rtc: jz4740: fix loading of rtc driver

From: Alexandre Belloni
Date: Thu Oct 12 2017 - 08:33:08 EST


On 18/09/2017 at 21:10:13 +0200, Mathieu Malaterre wrote:
> 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@xxxxxxxxxx>
> Cc: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@xxxxxxxxxx>
> Signed-off-by: Mathieu Malaterre <malat@xxxxxxxxxx>
> ---
> drivers/rtc/rtc-jz4740.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Applied, thanks.

--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com