[PATCH 00/12] rtc: clear the wake IRQ on unbind
Prasanth R
ragaprasanth at gmail.com
Tue Nov 24 23:20:14 PST 2026
From: Prasanth R <ragaprasanth at 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
More information about the linux-arm-kernel
mailing list