* [lm-sensors] smbus RTC as misc device
@ 2005-05-20 10:24 Olav Kongas
0 siblings, 0 replies; 2+ messages in thread
From: Olav Kongas @ 2005-05-20 10:24 UTC (permalink / raw)
To: lm-sensors
Hi,
I hope this is the right list for my question. If not,
please point me to a better list.
Sometime at 2.6.8-2.6.9 kernel I needed a driver for the
m41t11 RTC smbus chip. As there was none in the kernel at
that time, I wrote it myself and made it available for user
space as a misc device /dev/rtc (character dev 10 135). This
way unmodified hwclock could access it.
Now I noticed that latest kernels already contain the
m41t00.c, which may well be able to drive my m41t11 RTC
unmodified. However, it does not make the device available
through /dev/rtc. Neither do that other few i2c RTCs
currently in the kernel. They all seem to define their own
ioctls each.
What about making i2c RTCs available through /dev/rtc
supporting its ioctls? If this would be OK then I can
propose a patch for m41t00.c.
Olav
!! I'm not subscribed, please CC.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [lm-sensors] smbus RTC as misc device
@ 2005-06-16 19:47 Jean Delvare
0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2005-06-16 19:47 UTC (permalink / raw)
To: lm-sensors
Hi Olav,
Sorry for the delay.
> I hope this is the right list for my question. If not,
> please point me to a better list.
>
> Sometime at 2.6.8-2.6.9 kernel I needed a driver for the
> m41t11 RTC smbus chip. As there was none in the kernel at
> that time, I wrote it myself and made it available for user
> space as a misc device /dev/rtc (character dev 10 135). This
> way unmodified hwclock could access it.
>
> Now I noticed that latest kernels already contain the
> m41t00.c, which may well be able to drive my m41t11 RTC
> unmodified. However, it does not make the device available
> through /dev/rtc. Neither do that other few i2c RTCs
> currently in the kernel. They all seem to define their own
> ioctls each.
>
> What about making i2c RTCs available through /dev/rtc
> supporting its ioctls? If this would be OK then I can
> propose a patch for m41t00.c.
You are probably right. There have been quite a few discussions lately
about how to standardize the kernel interface to RTC drivers, the same
question may hold for the user-space interface.
However, this is neither related to hardware monitoring, nor to i2c, so
there's not much advice we can give to you - it's something we don't
know anything about ourselves. Better try to contact the various authors
of RTC drivers and/or the LKML, and see what they think about the idea.
--
Jean Delvare
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-16 19:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-16 19:47 [lm-sensors] smbus RTC as misc device Jean Delvare
-- strict thread matches above, loose matches on Subject: below --
2005-05-20 10:24 Olav Kongas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.