[lkml]   [2005]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject[RFC][PATCH 0/6] RTC subsystem


    this is a proposal for the implementation of a kernel-wide
    RTC subsystem.

    The current state of RTCs under linux is that each one
    of the current drivers is actually self-contained and
    has a lot of redundant functions [1].

    The lack of a kernel-wide subsystem is particulary important
    on embedded devices, where the RTC is usually implemented
    on an I2C chip.

    Of the current I2C RTC drivers, no-one actually interfaces
    with the kernel [2]: the driver is actually useless
    without further patches that are probably provided as part
    of an external project.

    When new driver are to be implemented [3], I've noticed
    authors are often confused on how to do it, resulting
    in drivers that will not work on different architectures
    and that will probably never be merged in the kernel.

    They also happen to use ioctls over (struct i2c_client *)->command,
    which has recently been deprecated [4].

    The architecture is quite simple. Each RTC device should
    register to the RTC class, providing a set of pointers
    to functions. The class will provide access to the RTC
    to the whole kernel and userspace.

    For this purpose, the class supports multiple interfaces,
    like sysfs, proc and dev.

    The user has complete control over which interfaces
    gets added using the standard Kconfig mechanism.

    proc and dev, due to their nature, will only expose
    the first RTC that registers to the subsystem.

    The RTC code is derived from the one of the ARM subsystem.

    This patchset has been verify to properly work under Linux/ARM
    on several NSLU2s ( and applies
    successfully on the 2.6.15-rc6 kernel . If this is the right
    way to go, I will port the x86 rtc driver in order to get
    broader testing.

    I'd appreciate receiving feedback on this proposal.

    Thanks in advance.


    Best regards,

    Alessandro Zummo,
    Tower Technologies - Turin, Italy





    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-12-20 21:56    [W:0.022 / U:75.204 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site