devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Paul Cercueil <paul@crapouillou.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
	list@opendingux.net, linux-rtc@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-mips@vger.kernel.org
Subject: Re: [PATCH 3/5] rtc: jz4740: Reset scratchpad register on power loss
Date: Mon, 16 May 2022 15:56:52 +0200	[thread overview]
Message-ID: <YoJYJIqoflaoEpsQ@mail.local> (raw)
In-Reply-To: <T0ULAR.TKXMRCDN7DQ53@crapouillou.net>

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

  reply	other threads:[~2022-05-16 13:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-18 18:49 [PATCH 0/5] rtc: ingenic: various updates Paul Cercueil
2022-04-18 18:49 ` [PATCH 1/5] dt-bindings: rtc: Rework compatible strings and add #clock-cells Paul Cercueil
2022-04-19  6:41   ` Krzysztof Kozlowski
2022-04-19 16:55     ` Paul Cercueil
2022-04-18 18:49 ` [PATCH 2/5] rtc: jz4740: Use readl_poll_timeout Paul Cercueil
2022-04-18 18:49 ` [PATCH 3/5] rtc: jz4740: Reset scratchpad register on power loss Paul Cercueil
2022-04-19 19:35   ` Alexandre Belloni
2022-04-19 19:48     ` Paul Cercueil
2022-04-19 20:00       ` Alexandre Belloni
2022-04-19 20:53         ` Paul Cercueil
2022-05-16 13:56           ` Alexandre Belloni [this message]
2022-04-18 18:49 ` [PATCH 4/5] rtc: jz4740: Register clock provider for the CLK32K pin Paul Cercueil
2022-04-19  4:30   ` kernel test robot
2022-04-19  5:45   ` kernel test robot
2022-04-18 18:49 ` [PATCH 5/5] rtc: jz4740: Support for fine-tuning the RTC clock Paul Cercueil
2022-04-19  4:32   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YoJYJIqoflaoEpsQ@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=a.zummo@towertech.it \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=list@opendingux.net \
    --cc=paul@crapouillou.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).