[PATCH 0/7] rtc-cmos: private locking and MMIO support

From: Marc Zyngier
Date: Fri Apr 25 2014 - 05:33:12 EST


The original PC-style CMOS RTC driver is so weird and full of hacks
that it has reached the status of a major piece of art.

Despite noticeable efforts to carry on with the spirit of tainting
every architecture under the sun, this patch series tries to make the
rtc-cmos driver a slightly better citizen by allowing architecture
code *not* to provide an exported lock when it is not strictly
required, and to allow for MMIO accessors on architectures that don't
have IO ports.

Please have a bucket ready.

The actual goal of the exercise is to allow the use of the RTC
emulation provided by kvmtool in KVM/ARM guests. This series has also
been tested on x86.

Marc Zyngier (7):
rtc-cmos: abstract IO accessors
rtc-cmos: abstract locking primitives
rtc-cmos: allow MMIO to be used when initialized from FDT
rtc-cmos: allow strictly MMIO based configurations
rtc-cmos: implement driver private locking
ARM: rtc: update CMOS RTC to support MMIO and private lock
arm64: rtc: plug the PC CMOS RTC using MMIO accessors

arch/arm/kernel/time.c | 7 --
arch/arm64/include/asm/mc146818rtc.h | 10 ++
drivers/rtc/Kconfig | 15 ++-
drivers/rtc/rtc-cmos.c | 217 +++++++++++++++++++++++++----------
include/asm-generic/rtc.h | 92 ++++++++++-----
5 files changed, 240 insertions(+), 101 deletions(-)
create mode 100644 arch/arm64/include/asm/mc146818rtc.h

--
1.8.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/