From: Ralf Baechle <ralf@linux-mips.org>
To: "Nori, Soma Sekhar" <nsekhar@ti.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Updating RTC with date command
Date: Tue, 19 Jul 2005 10:31:10 -0400 [thread overview]
Message-ID: <20050719143110.GD3108@linux-mips.org> (raw)
In-Reply-To: <CBD77117272E1249BFDC21E33D555FDC06018D@dbde01.ent.ti.com>
On Tue, Jul 19, 2005 at 03:34:01PM +0530, Nori, Soma Sekhar wrote:
> I am trying to add RTC (ds1338) support to 2.6.10 mips kernel
> running on my 4kec board.
>
> I have populated the rtc_{get|set}_time and rtc_set_mmss pointers
> and the date command shows the time correctly (as read from the RTC).
>
> However, when I try to update the time using date -s <time string>
> the RTC does not get updated. (shows the old time when I boot-up again)
>
> In arch\mips\kernel\time.c the timer_interrupt calls rtc_set_mmss,
> but that call is made only when STA_UNSYNC is _not_ set in time_status
> variable. do_settimeofday/sys_stime _set_ this flag so the timer
> interrupt does not call rtc_set_mmss.
>
> In all, I could not figure out any other invocation of rtc_set_time or
> rtc_set_mmss which could be setting the time in my case.
>
> Can somebody please help me understand how the RTC is supposed to be
> updated after user changes the time using the date command?
Not at all. Try man hwclock.
Ralf
next prev parent reply other threads:[~2005-07-19 14:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-19 10:04 Updating RTC with date command Nori, Soma Sekhar
2005-07-19 10:04 ` Nori, Soma Sekhar
2005-07-19 14:31 ` Ralf Baechle [this message]
2005-07-19 14:42 ` Jan-Benedict Glaw
2005-07-19 15:06 ` Maciej W. Rozycki
2005-07-19 15:20 ` Jan-Benedict Glaw
2005-07-19 16:40 ` Maciej W. Rozycki
2005-07-19 23:00 ` Jan-Benedict Glaw
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=20050719143110.GD3108@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=nsekhar@ti.com \
/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