Re: [PATCH 3/5] rtc: jz4740: Reset scratchpad register on power loss

From: Alexandre Belloni
Date: Mon May 16 2022 - 09:57:49 EST


On 19/04/2022 21:53:17+0100, Paul Cercueil wrote:
> > > So what is the best thing to do then?
> > >
> >
> > Well, -EINVAL is returned when the time is invalid, this should be
> > enough. I'm not actually sure what is the issue you are trying to fix
> > here.
>
> htop fails to start and tells me:
> "No btime in /proc/stat: No such file or directory"
>
> until the date is reset. So I was assuming it was a case of the jz4740
> driver not being correct and breaking userspace.
>

I guess either /proc/stat or htop needs fixing then ;)

> Cheers,
> -Paul
>
>
> >
> > > Cheers,
> > > -Paul
> > >
> > > > > + }
> > > > > +
> > > > > ret = devm_rtc_register_device(rtc->rtc);
> > > > > if (ret)
> > > > > return ret;
> > > > > --
> > > > > 2.35.1
> > > > >
> > > >
> > > > --
> > > > Alexandre Belloni, co-owner and COO, Bootlin
> > > > Embedded Linux and Kernel engineering
> > > > https://bootlin.com
> > >
> > >
> >
> > --
> > Alexandre Belloni, co-owner and COO, Bootlin
> > Embedded Linux and Kernel engineering
> > https://bootlin.com
>
>

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com