mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marc Zyngier <marc.zyngier@arm.com>
To: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com
Cc: Russell King <linux@arm.linux.org.uk>,
	Will Deacon <will.deacon@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Alessandro Zummo <a.zummo@towertech.it>
Subject: [PATCH 0/7] rtc-cmos: private locking and MMIO support
Date: Fri, 25 Apr 2014 10:31:08 +0100	[thread overview]
Message-ID: <1398418275-9671-1-git-send-email-marc.zyngier@arm.com> (raw)

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


             reply	other threads:[~2014-04-25  9:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-25  9:31 Marc Zyngier [this message]
2014-04-25  9:31 ` [PATCH 1/7] rtc-cmos: abstract IO accessors Marc Zyngier
2014-04-25  9:31 ` [PATCH 2/7] rtc-cmos: abstract locking primitives Marc Zyngier
2014-04-25  9:31 ` [PATCH 3/7] rtc-cmos: allow MMIO to be used when initialized from FDT Marc Zyngier
2014-04-25  9:31 ` [PATCH 4/7] rtc-cmos: allow strictly MMIO based configurations Marc Zyngier
2014-04-25  9:31 ` [PATCH 5/7] rtc-cmos: implement driver private locking Marc Zyngier
2014-04-25  9:31 ` [PATCH 6/7] ARM: rtc: update CMOS RTC to support MMIO and private lock Marc Zyngier
2014-04-25 10:27   ` Russell King - ARM Linux
2014-04-25 12:32     ` Marc Zyngier
2014-04-25  9:31 ` [PATCH 7/7] arm64: rtc: plug the PC CMOS RTC using MMIO accessors Marc Zyngier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1398418275-9671-1-git-send-email-marc.zyngier@arm.com \
    --to=marc.zyngier@arm.com \
    --cc=a.zummo@towertech.it \
    --cc=catalin.marinas@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=rtc-linux@googlegroups.com \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®