Linux-RTC Archive on lore.kernel.org
 help / color / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: xiaolinkui <xiaolinkui@tj.kylinos.cn>
Cc: a.zummo@towertech.it, linux-rtc@vger.kernel.org
Subject: Re: [PATCH] rtc: Kconfig: change the tristate type to bool
Date: Tue, 24 Mar 2020 10:42:09 +0100
Message-ID: <20200324094209.GI5504@piout.net> (raw)
In-Reply-To: <336f9aea-d28a-d114-9a0c-a893d9cb9af3@tj.kylinos.cn>

On 24/03/2020 17:33:00+0800, xiaolinkui wrote:
> On 3/23/20 9:43 PM, Alexandre Belloni wrote:
> > On 23/03/2020 20:43:39+0800, xiaolinkui wrote:
> > > If the rtc driver is compiled into a module, hctosys can't
> > > read the rtc clock during system startup.
> > > The dmesg log will have the following information:
> > > 
> > > [    2.286512] hctosys: unable to open rtc device (rtc0)
> > > 
> > > So the rtc driver configuration we need cannot be set to m.
> > > 
> > Wow, you are not even trying, the solution is to not use hctosys.
> > 
> > 
> Thank you for your reply. Yes, if we don't use hctosys, we won't have this
> problem. But without hctosys, we cannot get the clock from rtc during
> system startup.  Is it wrong for the system time each time the system is
> started for a machine without Internet access?
> 

Your userspace can read the RTC and set the system time properly.


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

      parent reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-23 12:43 xiaolinkui
2020-03-23 13:43 ` Alexandre Belloni
     [not found]   ` <336f9aea-d28a-d114-9a0c-a893d9cb9af3@tj.kylinos.cn>
2020-03-24  9:42     ` Alexandre Belloni [this message]

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=20200324094209.GI5504@piout.net \
    --to=alexandre.belloni@bootlin.com \
    --cc=a.zummo@towertech.it \
    --cc=linux-rtc@vger.kernel.org \
    --cc=xiaolinkui@tj.kylinos.cn \
    /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

Linux-RTC Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-rtc/0 linux-rtc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-rtc linux-rtc/ https://lore.kernel.org/linux-rtc \
		linux-rtc@vger.kernel.org
	public-inbox-index linux-rtc

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-rtc


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git