Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* [PATCH 00/12] rtc: clear the wake IRQ on unbind
@ 2026-11-25  7:20 Prasanth R
  2026-11-25  7:20 ` [PATCH 01/12] rtc: snvs: " Prasanth R
                   ` (11 more replies)
  0 siblings, 12 replies; 17+ messages in thread
From: Prasanth R @ 2026-11-25  7:20 UTC (permalink / raw)
  To: Alexandre Belloni, linux-rtc
  Cc: Frank Li, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Support Opensource, Paul Cercueil, CL Wang, imx, linux-arm-kernel,
	linux-mips, Prasanth R

From: Prasanth R <ragaprasanth@gmail.com>

These drivers set a wake IRQ with dev_pm_set_wake_irq() and never clear
it. After unbind and bind, dev_pm_set_wake_irq() warns "wake irq already
initialized" and returns -EEXIST. For jz4740 and atcrtc100 the probe
then fails.

Switch them to devm_pm_set_wake_irq() and devm_device_init_wakeup(), as
was done for rtc-pl031, rtc-stm32 and others. Patch 3 also fixes an
unbalanced clock disable in the mxc_v2 remove path.

Patch 1 is tested on an i.MX6Q SABRE-SD board by unbinding and binding
the driver through sysfs. The others are compile-tested only (ARM,
clang, W=1).

I used an AI assistant (Claude) to find these and write the changes.

Prasanth R (12):
  rtc: snvs: clear the wake IRQ on unbind
  rtc: mxc: clear the wake IRQ on unbind
  rtc: mxc_v2: fix unbalanced clock disable on remove
  rtc: mxc_v2: clear the wake IRQ on unbind
  rtc: imxdi: clear the wake IRQ on removal
  rtc: da9063: clear the wake IRQ on unbind
  rtc: fsl-ftm-alarm: clear the wake IRQ on unbind
  rtc: jz4740: clear the wake IRQ on unbind
  rtc: atcrtc100: clear the wake IRQ on unbind
  rtc: pcf8523: clear the wake IRQ on unbind
  rtc: pcf85063: clear the wake IRQ on unbind
  rtc: rv8803: clear the wake IRQ on unbind

 drivers/rtc/rtc-atcrtc100.c     | 8 +++-----
 drivers/rtc/rtc-da9063.c        | 4 ++--
 drivers/rtc/rtc-fsl-ftm-alarm.c | 4 ++--
 drivers/rtc/rtc-imxdi.c         | 4 ++--
 drivers/rtc/rtc-jz4740.c        | 4 ++--
 drivers/rtc/rtc-mxc.c           | 4 ++--
 drivers/rtc/rtc-mxc_v2.c        | 6 +++---
 drivers/rtc/rtc-pcf85063.c      | 4 ++--
 drivers/rtc/rtc-pcf8523.c       | 4 ++--
 drivers/rtc/rtc-rv8803.c        | 6 +++---
 drivers/rtc/rtc-snvs.c          | 7 +++++--
 11 files changed, 28 insertions(+), 27 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-11-25  7:33 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  7:20 [PATCH 00/12] rtc: clear the wake IRQ on unbind Prasanth R
2026-11-25  7:20 ` [PATCH 01/12] rtc: snvs: " Prasanth R
2026-11-25  7:20 ` [PATCH 02/12] rtc: mxc: " Prasanth R
2026-11-25  7:20 ` [PATCH 03/12] rtc: mxc_v2: fix unbalanced clock disable on remove Prasanth R
2026-11-25  7:20 ` [PATCH 04/12] rtc: mxc_v2: clear the wake IRQ on unbind Prasanth R
2026-11-25  7:25   ` sashiko-bot
2026-11-25  7:20 ` [PATCH 05/12] rtc: imxdi: clear the wake IRQ on removal Prasanth R
2026-11-25  7:20 ` [PATCH 06/12] rtc: da9063: clear the wake IRQ on unbind Prasanth R
2026-11-25  7:20 ` [PATCH 07/12] rtc: fsl-ftm-alarm: " Prasanth R
2026-11-25  7:20 ` [PATCH 08/12] rtc: jz4740: " Prasanth R
2026-11-25  7:20 ` [PATCH 09/12] rtc: atcrtc100: " Prasanth R
2026-11-25  7:20 ` [PATCH 10/12] rtc: pcf8523: " Prasanth R
2026-11-25  7:33   ` sashiko-bot
2026-11-25  7:20 ` [PATCH 11/12] rtc: pcf85063: " Prasanth R
2026-11-25  7:29   ` sashiko-bot
2026-11-25  7:20 ` [PATCH 12/12] rtc: rv8803: " Prasanth R
2026-11-25  7:32   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox