2006-03-18 17:21:17

by Alessandro Zummo

[permalink] [raw]
Subject: [PATCH 00/18] RTC subsystem


RTC subsystem.

Original RFC available at http://lkml.org/lkml/2005/12/20/220

Changelog. Between parentheses is the name
of the person that suggested the change.

- license and tristate for rtc-lib.c (Andrian Bunk)
- added driver for ST M48T86

The following patches have been incorporated:

none

The following items are in the TODO:

- Documentation of exported functions
- Handling of max_user_freq
- 11 min ntp update mode

--

Best regards,

Alessandro Zummo,
Tower Technologies - Turin, Italy

http://www.towertech.it

--


2006-03-28 16:25:58

by Kumar Gala

[permalink] [raw]
Subject: Re: [PATCH 00/18] RTC subsystem


On Mar 18, 2006, at 11:19 AM, Alessandro Zummo wrote:

>
> RTC subsystem.
>
> Original RFC available at http://lkml.org/lkml/2005/12/20/220
>
> Changelog. Between parentheses is the name
> of the person that suggested the change.
>
> - license and tristate for rtc-lib.c (Andrian Bunk)
> - added driver for ST M48T86
>
> The following patches have been incorporated:
>
> none
>
> The following items are in the TODO:
>
> - Documentation of exported functions
> - Handling of max_user_freq
> - 11 min ntp update mode

Alessandro, is there any mechanism to determine if an RTC is enabled
through /dev or sysfs?

The DS1672 has an enable counting bit in its I2C register interface.
I can have a set time enable it if its not, however I'd like to
report to user space the fact that its not enabled.

thanks

- kuamr

2006-03-28 16:43:36

by Alessandro Zummo

[permalink] [raw]
Subject: Re: [PATCH 00/18] RTC subsystem

On Tue, 28 Mar 2006 10:25:59 -0600
Kumar Gala <[email protected]> wrote:

>
> Alessandro, is there any mechanism to determine if an RTC is enabled
> through /dev or sysfs?
>
> The DS1672 has an enable counting bit in its I2C register interface.
> I can have a set time enable it if its not, however I'd like to
> report to user space the fact that its not enabled.

No mechanism, an rtc is actually supposed to be running. You may want
to export a sysfs attribute from the ds1672 driver to inform
user space.

I can't check it right now, but iirc I enable the ds1672 counting
bit in the driver init code.

--

Best regards,

Alessandro Zummo,
Tower Technologies - Turin, Italy

http://www.towertech.it

2006-03-28 17:17:53

by Kumar Gala

[permalink] [raw]
Subject: Re: [PATCH 00/18] RTC subsystem


On Mar 28, 2006, at 10:43 AM, Alessandro Zummo wrote:

> On Tue, 28 Mar 2006 10:25:59 -0600
> Kumar Gala <[email protected]> wrote:
>
>>
>> Alessandro, is there any mechanism to determine if an RTC is enabled
>> through /dev or sysfs?
>>
>> The DS1672 has an enable counting bit in its I2C register interface.
>> I can have a set time enable it if its not, however I'd like to
>> report to user space the fact that its not enabled.
>
> No mechanism, an rtc is actually supposed to be running. You may want
> to export a sysfs attribute from the ds1672 driver to inform
> user space.

Any suggestions on what to call it?

> I can't check it right now, but iirc I enable the ds1672 counting
> bit in the driver init code.

Hmm, I didn't see that. I was going to send a patch to have
ds1672_set_mmss() always enable the counting bit.

- kumar

2006-03-28 17:52:08

by Alessandro Zummo

[permalink] [raw]
Subject: Re: [PATCH 00/18] RTC subsystem

On Tue, 28 Mar 2006 11:17:51 -0600
Kumar Gala <[email protected]> wrote:

> > No mechanism, an rtc is actually supposed to be running. You may want
> > to export a sysfs attribute from the ds1672 driver to inform
> > user space.
>
> Any suggestions on what to call it?

you can either use the name of the bit, according to the datasheet,
or "enabled".

> > I can't check it right now, but iirc I enable the ds1672 counting
> > bit in the driver init code.
>
> Hmm, I didn't see that. I was going to send a patch to have
> ds1672_set_mmss() always enable the counting bit.

please do. I'd appreciate if you can also add a check
for this bit on driver init and a printk to warn
the user if it is disabled.

thanks!


--

Best regards,

Alessandro Zummo,
Tower Technologies - Turin, Italy

http://www.towertech.it