Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1682263

[PATCH 00/11] RTC: rework registration

From Alexandre Belloni <alexandre.belloni@free-electrons.com>
Newsgroups linux.kernel
Subject [PATCH 00/11] RTC: rework registration
Date 2017-07-06 11:50 +0200
Message-ID <u0bA5-2xi-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


There are multiple race condition issues in the RTC drivers. It is
especially apparent in the IRQ handling and additionnal sysfs attributes
registration.

To solve most of those and allow to extend the framework more easily,
introduce a new registration method that allows to first allocate an
rtc_device and then register it.

Also, introduce a generic way to register nvmem devices so RTCs can
export their non volatile storage.

One of the goal will be to get rid of the IS_ERR_OR_NULL(rtc) check in
rtc_update_irq which makes people assume everything is properly handled
in the core.

Alexandre Belloni (11):
  rtc: class separate device allocation from registration
  rtc: class separate id allocation from registration
  rtc: introduce new registration method
  rtc: at91rm9200: remove race condition
  rtc: add generic nvmem support
  rtc: rv8803: switch to rtc_register_device
  rtc: rv8803: use generic nvmem support
  rtc: rv8803: remove rv8803_remove
  rtc: ds1307: switch to rtc_register_device
  rtc: ds1307: use generic nvmem
  rtc: ds1307: remove ds1307_remove

 Documentation/rtc.txt        |   2 +
 drivers/rtc/Kconfig          |   8 ++
 drivers/rtc/Makefile         |   1 +
 drivers/rtc/class.c          | 195 +++++++++++++++++++++++++++++++++----------
 drivers/rtc/nvmem.c          | 113 +++++++++++++++++++++++++
 drivers/rtc/rtc-at91rm9200.c |  14 ++--
 drivers/rtc/rtc-core.h       |   8 ++
 drivers/rtc/rtc-ds1307.c     | 103 +++++++----------------
 drivers/rtc/rtc-rv8803.c     |  72 +++++++---------
 include/linux/rtc.h          |  14 ++++
 10 files changed, 362 insertions(+), 168 deletions(-)
 create mode 100644 drivers/rtc/nvmem.c

-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 00/11] RTC: rework registration Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 07/11] rtc: rv8803: use generic nvmem support Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 04/11] rtc: at91rm9200: remove race condition Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 11/11] rtc: ds1307: remove ds1307_remove Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 09/11] rtc: ds1307: switch to rtc_register_device Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 03/11] rtc: introduce new registration method Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 06/11] rtc: rv8803: switch to rtc_register_device Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 02/11] rtc: class separate id allocation from registration Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 01/11] rtc: class separate device allocation from registration Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 05/11] rtc: add generic nvmem support Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200
  [PATCH 08/11] rtc: rv8803: remove rv8803_remove Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-06 11:50 +0200

csiph-web