On 31/01/2020 16:27:15+1100, JH wrote: > Hi Alexandre, > > On 1/31/20, Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx> wrote: > >> So it was already included in 4.19, I don't need to patch it, that is > >> good :-). Sorry I am still not clear how to stop that error message of > >> "rtc rtc0: Timeout trying to get valid LPSRT Counter read", the > >> message says "To avoid kernel hangs, put in timeouts", I am running > >> kernel 4.19.75 on iMX6, where should I put in timeouts? > >> > > > > The patch is adding the timeouts, without them, your kernel would be > > freezing. I'd say your issue is the 32k clock. > > Did you mean that is the issue of the hardware setup IMX6ULL for 32k > RTC_XTALI? That is nominal frequency 32.768 kHz for IMX6ULL EVK and > customized devices. Change to which frequency (64k?) can fix the > problem and remove the error message? > I can't help much more without seeing the schematics of your particular board. 32k is the correct frequency but are your sure it is going to the RTC? Are you sure you have power on VDD_SNVS_IN? Was there a security violation detected? -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com