mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 00/45] RTC: nvmem improvements
@ 2018-02-12 22:47 Alexandre Belloni
  2018-02-12 22:47 ` [PATCH 01/45] rtc: documentation: correct nvmem date and version Alexandre Belloni
                   ` (44 more replies)
  0 siblings, 45 replies; 46+ messages in thread
From: Alexandre Belloni @ 2018-02-12 22:47 UTC (permalink / raw)
  To: linux-rtc; +Cc: linux-kernel, Alexandre Belloni

This series makes some change to the RTC nvmem API to simplify drivers
and clean the way the nvmem_config is used.

The main issue was the different lifecycle of the struct nvmem_config
(only needed at probe time) and rtc_device (needed for the lifetime of
the driver).

Then, it converts the remaining drivers (except ds1685) to the API. A
few other improvements are also made along the way.

Alexandre Belloni (45):
  rtc: documentation: correct nvmem date and version
  rtc: nvmem: pass nvmem_config to rtc_nvmem_register()
  rtc: nvmem: return error values
  rtc: nvmem: disallow registering nvmem more than once
  rtc: export rtc_nvmem_register() to drivers
  rtc: ds1305: call rtc_nvmem_register()
  rtc: ds1305: put ds1305_nvmem_cfg on the stack
  rtc: ds1307: call rtc_nvmem_register()
  rtc: ds1307: put struct nvmem_config on the stack
  rtc: ds1511: call rtc_nvmem_register()
  rtc: ds1511: put ds1511_nvmem_cfg on the stack
  rtc: m48t86: call rtc_nvmem_register()
  rtc: m48t86: put m48t86_nvmem_cfg on the stack
  rtc: omap: call rtc_nvmem_register()
  rtc: pcf85363: call rtc_nvmem_register()
  rtc: pcf85363: put struct nvmem_config on the stack
  rtc: rv8803: call rtc_nvmem_register()
  rtc: rv8803: put struct nvmem_config on the stack
  rtc: rv8803: fix possible race condition
  rtc: remove nvmem_config
  rtc: ds1343: simplify regmap initialization
  rtc: ds1343: switch to rtc_register_device
  rtc: ds1343: remove undocumented and useless sysfs files
  rtc: ds1343: use generic nvmem
  rtc: m48t59: switch to rtc_register_device
  rtc: m48t59: use generic nvmem
  rtc: sirfsoc: remove useless sirfsoc_rtc_ioctl
  rtc: ds1553: switch to rtc_register_device
  rtc: ds1553: use generic nvmem
  rtc: ds1553: make alarms useful
  rtc: cmos: fix possible race condition
  rtc: cmos: use generic nvmem
  rtc: ds1742: switch to rtc_register_device
  rtc: ds1742: use generic nvmem
  rtc: rp5c01: fix possible race condition
  rtc: rp5c01: use generic nvmem
  rtc: stk17ta8: make alarms useful
  rtc: stk17ta8: switch to rtc_register_device
  rtc: stk17ta8: fix possible race condition
  rtc: stk17ta8: use generic nvmem
  rtc: tx4939: remove arch/mips dependency
  rtc: tx4939: extend test coverage
  rtc: tx4939: switch to rtc_register_device
  rtc: tx4939: fix possible race condition
  rtc: tx4939: use generic nvmem

 Documentation/ABI/testing/sysfs-class-rtc |   4 +-
 drivers/rtc/Kconfig                       |   2 +-
 drivers/rtc/class.c                       |   2 -
 drivers/rtc/nvmem.c                       |  29 +++--
 drivers/rtc/rtc-cmos.c                    |  75 ++++++------
 drivers/rtc/rtc-core.h                    |   8 --
 drivers/rtc/rtc-ds1305.c                  |  21 ++--
 drivers/rtc/rtc-ds1307.c                  |  29 ++---
 drivers/rtc/rtc-ds1343.c                  | 183 +++++-------------------------
 drivers/rtc/rtc-ds1511.c                  |  22 ++--
 drivers/rtc/rtc-ds1553.c                  |  74 +++++-------
 drivers/rtc/rtc-ds1742.c                  |  73 ++++++------
 drivers/rtc/rtc-m48t59.c                  |  57 +++++-----
 drivers/rtc/rtc-m48t86.c                  |  23 ++--
 drivers/rtc/rtc-omap.c                    |   3 +-
 drivers/rtc/rtc-pcf85363.c                |  25 ++--
 drivers/rtc/rtc-rp5c01.c                  |  63 +++++-----
 drivers/rtc/rtc-rv8803.c                  |  33 +++---
 drivers/rtc/rtc-sirfsoc.c                 |  18 ---
 drivers/rtc/rtc-stk17ta8.c                |  70 +++++-------
 drivers/rtc/rtc-tx4939.c                  |  87 +++++++++-----
 include/linux/rtc.h                       |  14 ++-
 22 files changed, 380 insertions(+), 535 deletions(-)

-- 
2.16.1

^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2018-02-12 22:59 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12 22:47 [PATCH 00/45] RTC: nvmem improvements Alexandre Belloni
2018-02-12 22:47 ` [PATCH 01/45] rtc: documentation: correct nvmem date and version Alexandre Belloni
2018-02-12 22:47 ` [PATCH 02/45] rtc: nvmem: pass nvmem_config to rtc_nvmem_register() Alexandre Belloni
2018-02-12 22:47 ` [PATCH 03/45] rtc: nvmem: return error values Alexandre Belloni
2018-02-12 22:47 ` [PATCH 04/45] rtc: nvmem: disallow registering nvmem more than once Alexandre Belloni
2018-02-12 22:47 ` [PATCH 05/45] rtc: export rtc_nvmem_register() to drivers Alexandre Belloni
2018-02-12 22:47 ` [PATCH 06/45] rtc: ds1305: call rtc_nvmem_register() Alexandre Belloni
2018-02-12 22:47 ` [PATCH 07/45] rtc: ds1305: put ds1305_nvmem_cfg on the stack Alexandre Belloni
2018-02-12 22:47 ` [PATCH 08/45] rtc: ds1307: call rtc_nvmem_register() Alexandre Belloni
2018-02-12 22:47 ` [PATCH 09/45] rtc: ds1307: put struct nvmem_config on the stack Alexandre Belloni
2018-02-12 22:47 ` [PATCH 10/45] rtc: ds1511: call rtc_nvmem_register() Alexandre Belloni
2018-02-12 22:47 ` [PATCH 11/45] rtc: ds1511: put ds1511_nvmem_cfg on the stack Alexandre Belloni
2018-02-12 22:47 ` [PATCH 12/45] rtc: m48t86: call rtc_nvmem_register() Alexandre Belloni
2018-02-12 22:47 ` [PATCH 13/45] rtc: m48t86: put m48t86_nvmem_cfg on the stack Alexandre Belloni
2018-02-12 22:47 ` [PATCH 14/45] rtc: omap: call rtc_nvmem_register() Alexandre Belloni
2018-02-12 22:47 ` [PATCH 15/45] rtc: pcf85363: " Alexandre Belloni
2018-02-12 22:47 ` [PATCH 16/45] rtc: pcf85363: put struct nvmem_config on the stack Alexandre Belloni
2018-02-12 22:47 ` [PATCH 17/45] rtc: rv8803: call rtc_nvmem_register() Alexandre Belloni
2018-02-12 22:47 ` [PATCH 18/45] rtc: rv8803: put struct nvmem_config on the stack Alexandre Belloni
2018-02-12 22:47 ` [PATCH 19/45] rtc: rv8803: fix possible race condition Alexandre Belloni
2018-02-12 22:47 ` [PATCH 20/45] rtc: remove nvmem_config Alexandre Belloni
2018-02-12 22:47 ` [PATCH 21/45] rtc: ds1343: simplify regmap initialization Alexandre Belloni
2018-02-12 22:47 ` [PATCH 22/45] rtc: ds1343: switch to rtc_register_device Alexandre Belloni
2018-02-12 22:47 ` [PATCH 23/45] rtc: ds1343: remove undocumented and useless sysfs files Alexandre Belloni
2018-02-12 22:47 ` [PATCH 24/45] rtc: ds1343: use generic nvmem Alexandre Belloni
2018-02-12 22:47 ` [PATCH 25/45] rtc: m48t59: switch to rtc_register_device Alexandre Belloni
2018-02-12 22:47 ` [PATCH 26/45] rtc: m48t59: use generic nvmem Alexandre Belloni
2018-02-12 22:47 ` [PATCH 27/45] rtc: sirfsoc: remove useless sirfsoc_rtc_ioctl Alexandre Belloni
2018-02-12 22:47 ` [PATCH 28/45] rtc: ds1553: switch to rtc_register_device Alexandre Belloni
2018-02-12 22:47 ` [PATCH 29/45] rtc: ds1553: use generic nvmem Alexandre Belloni
2018-02-12 22:47 ` [PATCH 30/45] rtc: ds1553: make alarms useful Alexandre Belloni
2018-02-12 22:47 ` [PATCH 31/45] rtc: cmos: fix possible race condition Alexandre Belloni
2018-02-12 22:47 ` [PATCH 32/45] rtc: cmos: use generic nvmem Alexandre Belloni
2018-02-12 22:47 ` [PATCH 33/45] rtc: ds1742: switch to rtc_register_device Alexandre Belloni
2018-02-12 22:47 ` [PATCH 34/45] rtc: ds1742: use generic nvmem Alexandre Belloni
2018-02-12 22:47 ` [PATCH 35/45] rtc: rp5c01: fix possible race condition Alexandre Belloni
2018-02-12 22:47 ` [PATCH 36/45] rtc: rp5c01: use generic nvmem Alexandre Belloni
2018-02-12 22:47 ` [PATCH 37/45] rtc: stk17ta8: make alarms useful Alexandre Belloni
2018-02-12 22:47 ` [PATCH 38/45] rtc: stk17ta8: switch to rtc_register_device Alexandre Belloni
2018-02-12 22:47 ` [PATCH 39/45] rtc: stk17ta8: fix possible race condition Alexandre Belloni
2018-02-12 22:47 ` [PATCH 40/45] rtc: stk17ta8: use generic nvmem Alexandre Belloni
2018-02-12 22:47 ` [PATCH 41/45] rtc: tx4939: remove arch/mips dependency Alexandre Belloni
2018-02-12 22:47 ` [PATCH 42/45] rtc: tx4939: extend test coverage Alexandre Belloni
2018-02-12 22:47 ` [PATCH 43/45] rtc: tx4939: switch to rtc_register_device Alexandre Belloni
2018-02-12 22:47 ` [PATCH 44/45] rtc: tx4939: fix possible race condition Alexandre Belloni
2018-02-12 22:47 ` [PATCH 45/45] rtc: tx4939: use generic nvmem Alexandre Belloni

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®