Skip to content

RFC RTC subsystem

Alessandro Zummo lkml 1 version In review

Get series with b4
b4 am 20051226201901.54288289@inspiron

Versions newest first

  1. v1 RFC Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7RTC subsystem, classdrivers/Kconfig drivers/Makefile drivers/rtc/Kconfig +5 more+403 -00 replies
2/7RTC subsystem, ARM cleanuparch/arm/Kconfig arch/arm/common/rtctime.c+14 -950 replies
3/7RTC subsystem, sysfs interfacedrivers/rtc/Kconfig drivers/rtc/Makefile drivers/rtc/rtc-sysfs.c+111 -10 replies
4/7RTC subsystem, proc interfacedrivers/rtc/Kconfig drivers/rtc/Makefile drivers/rtc/rtc-proc.c+158 -00 replies
5/7RTC subsystem, dev interfacedrivers/rtc/Kconfig drivers/rtc/Makefile drivers/rtc/rtc-dev.c+371 -00 replies
6/7RTC subsystem, x1205 driverdrivers/rtc/Kconfig drivers/rtc/Makefile drivers/rtc/rtc-x1205.c+740 -00 replies
7/7RTC subsystem, test device/driverdrivers/rtc/Kconfig drivers/rtc/Makefile drivers/rtc/rtc-test.c+212 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH 0/7] RTC subsystem

Hello,

thanks to all the suggestions I've got, I've
updated my proposal [1] for an RTC subsystem.

I tried to implement locking wherever necessary.
I'm on vacations right now and I don't have all the feedback emails at handy, so I'm sure I've forgot something.

I've left some XXX in the points where I have
doubts.

The dev interface now supports multiple RTCs and
hotplug events are generated whenever an RTC is added/removed.

Those udev lines can be used to create the device nodes

ACTION=="add", SUBSYSTEM=="rtc", ENV{MAJOR}=="[0-9]*", NAME="rtc%m"
ACTION=="add", SUBSYSTEM=="rtc", ENV{MINOR}=="0", SYMLINK+="rtc"

I also added a test device/driver which can be used
to excercize the APIs. This device can also generate interrupts using the sysfs interface (more details in the path).

hwclock seems to work fine, both in polling
and IRQ modes.

Signature · 9 lines
 Best regards,

 Alessandro Zummo,
  Tower Technologies - Turin, Italy

  http://www.towertech.it

[1]
	http://lkml.org/lkml/2005/12/20/220