From: David Brownell <david-b@pacbell.net>
To: Alessandro Zummo <alessandro.zummo@towertech.it>
Cc: Tino Keitel <tino.keitel@gmx.de>,
rtc-linux@googlegroups.com,
Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>,
linux-kernel@vger.kernel.org
Subject: Re: [rtc-linux] Re: rtc_cmos: error after first write to wakealarm
Date: Fri, 22 Jun 2007 11:45:52 -0700 [thread overview]
Message-ID: <200706221145.53157.david-b@pacbell.net> (raw)
In-Reply-To: <20070622193431.71bed8b5@inspiron>
On Friday 22 June 2007, Alessandro Zummo wrote:
> On Tue, 19 Jun 2007 19:24:29 +0200
> Tino Keitel <tino.keitel@gmx.de> wrote:
>
> > > > Where is the documentation that describes that I have to disable it
> > > > first, and how to do this? A migration document for
> > > > /proc/acpi/alarm users would be nice, too.
> > >
> > > Well, I guess there is no documentation. Maybe we could add
> > > a dev_warn with an explicit message.
> >
> > Isn't it somewhat ridiculous to plan the removal of a feature for
> > several months, and then replace it with something that behaves
> > differently without any documentation?
It's got as much documentation in the kernel tree as that
old /proc/acpi/alarm thing. More, in fact, since the GIT
comment for the putback creating /sys/rtc/.../wakealarm
files has lots of info about how to use it.
But sure, having documentation for the rtc sysfs interface
would be a Fine Thing. It should cover the other values
too, not just that one attribute.
> > I still wonder how 'cat /sys/class/rtc/rtcX/wakealarm' is expected to
> > behave. With 2.6.22-rc5, I get this:
> >
> > $ echo 1182351177 > /sys/class/rtc/rtc0/wakealarm
> > $ cat /sys/class/rtc/rtc0/wakealarm
> > 2051644873
> >
> > There seems to be a constant difference of 869984896 seconds. Is this a
> > bug?
What RTC driver is that using?
One theory: it's an RTC that doesn't support all the fields,
so its driver is returning "-1" in fields like "year" or "month".
Right now there's no code forcing rtc_read_alarm() to return
values for which rtc_valid_tm(&alarm->time), and bogus values
in wakealarm would be a symptom. I suspect most of the systems
I tested the "wakealarm" attribute with have RTC alarms that
don't have those particular deficiencies.
- Dave
>
> I'll have to check that. Sorry for the delay, i've been a bit busy.
>
>
> --
>
next prev parent reply other threads:[~2007-06-22 18:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-15 6:33 rtc_cmos: error after first write to wakealarm Tino Keitel
2007-06-15 6:59 ` Yoichi Yuasa
2007-06-15 7:03 ` Tino Keitel
2007-06-19 12:24 ` [rtc-linux] " Alessandro Zummo
2007-06-19 17:24 ` Tino Keitel
2007-06-22 17:34 ` Alessandro Zummo
2007-06-22 18:45 ` David Brownell [this message]
2007-06-22 19:44 ` Tino Keitel
2007-06-23 3:18 ` David Brownell
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=200706221145.53157.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=alessandro.zummo@towertech.it \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
--cc=tino.keitel@gmx.de \
--cc=yoichi_yuasa@tripeaks.co.jp \
/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