Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Prasanth R" <ragaprasanth@gmail.com>, linux-rtc@vger.kernel.org
Cc: imx@lists.linux.dev, Frank.Li@kernel.org,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH 11/12] rtc: pcf85063: clear the wake IRQ on unbind
Date: Wed, 25 Nov 2026 07:29:46 +0000	[thread overview]
Message-ID: <sashiko-outbox-232800@kernel.org> (raw)
In-Reply-To: <20261125072026.2997493-12-prasanth.r@lineo.co.jp>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] rtc: pcf85063: Fixes trailer cites 05cb3a56ee8c instead of
  a3c7f7e16ea8f
--

commit 02e3d5d53e616f78f39dfc9fe5c12cd70b022082
Author: Prasanth R <ragaprasanth@gmail.com>

> rtc: pcf85063: clear the wake IRQ on unbind
>
> The driver has no remove callback, so the wake IRQ set with
> dev_pm_set_wake_irq() and the wakeup source enabled with
> device_init_wakeup() are never released on unbind.
>
> When the driver is bound again, dev_pm_set_wake_irq() finds the old wake
> IRQ, warns "wake irq already initialized" and returns -EEXIST, so the
> driver prints "failed to enable irq wake".
>
> Use the device-managed variants so both are released on unbind.
>
> Compile-tested only.
>
> I used an AI assistant (Claude) to find this and write the change.
>
> Fixes: 05cb3a56ee8c ("rtc: pcf85063: add alarm support")
> Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>

[Severity: Low]
In 05cb3a56ee8c ("rtc: pcf85063: add alarm support"), this driver only
registered an i2c_driver, and the I2C core's i2c_device_remove() already
calls dev_pm_clear_wake_irq() and device_init_wakeup(dev, false) on
unbind.  The unbind leak only became possible when SPI support was added
via rv8063_probe(), since spi_remove() does not clear the wake IRQ or
wakeup source.  Should the Fixes tag instead be:

  Fixes: a3c7f7e16ea8 ("rtc: pcf85063: add support for RV8063")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125072026.2997493-1-prasanth.r@lineo.co.jp?part=11

  reply	other threads:[~2026-11-25  7:29 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2026-11-25  7:20 ` [PATCH 12/12] rtc: rv8803: " Prasanth R
2026-11-25  7:32   ` sashiko-bot

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=sashiko-outbox-232800@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=imx@lists.linux.dev \
    --cc=linux-rtc@vger.kernel.org \
    --cc=ragaprasanth@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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