Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matthew Garrett <mjg59@...>
Cc: Alessandro Zummo <alessandro.zummo@...>, <rtc-linux@...>, Linux Kernel list <linux-kernel@...>
Date: Monday, May 28, 2007 - 5:07 pm

On Monday 28 May 2007, Matthew Garrett wrote:

Well ... legacy APIs allow "-1" there; /proc/driver/rtc certainly
interprets wildcards consistently too.  That is, historically it's
not been legit to call rtc_tm_to_time(&t->time).

A counter-argument could be made that rtc_read_alarm() should get
rid of wildcards.  It's got the right RTC in hand; rtc_tm_to_time()
doesn't.  Other RTCs can have this same type of "wildcard" issue.

Me, I'd prefer to make the API treat alarms as purely oneshot.
That whole "wildcard" model is, as you noted, awkward ... even
though it's got hardware support in cases like MC146818 and clones,
it's not very portable.  But I don't want to push that issue either
way just now.




I was wondering about that in the context of a different RTC, which
happens to run on BIOS-less hardware.  Which, curiously, may be the
opposite of BIOS-impaired hardware ... :)

In general, I suspect the alarm should stay active ... unless its
time has already passed.  That was the original intent of that
tweak, but of course PCs don't actually *have* oneshot alarms, so
there's no way to tell if a given alarm is in the past.  Leading to
the conclusion that AIE should probably stay enabled.

- Dave

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 2.6.20-rc3 1/3] rtc-cmos driver, David Brownell, (Fri Jan 5, 2:01 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, Matthew Garrett, (Mon May 28, 2:35 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, David Brownell, (Mon May 28, 5:07 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, Alessandro Zummo, (Fri Jan 5, 4:45 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, David Brownell, (Fri Jan 5, 11:10 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, David Brownell, (Fri Jan 5, 11:33 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, Woody Suwalski, (Sat Jan 6, 1:17 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, David Brownell, (Sat Jan 6, 5:17 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, Russell King, (Sun Jan 7, 5:02 am)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, Woody Suwalski, (Tue Jan 9, 12:37 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, David Brownell, (Tue Jan 9, 8:01 pm)
Re: [patch 2.6.20-rc3 1/3] rtc-cmos driver, David Brownell, (Wed Jan 10, 1:27 am)