From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: John Madieu <john.madieu.xa@bp.renesas.com>,
"ryan@bluewatersys.com" <ryan@bluewatersys.com>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"m.grzeschik@pengutronix.de" <m.grzeschik@pengutronix.de>,
"Denis.Osterland@diehl.com" <Denis.Osterland@diehl.com>,
"linux-rtc@vger.kernel.org" <linux-rtc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"john.madieu@gmail.com" <john.madieu@gmail.com>
Subject: Re: [PATCH 2/2] rtc: isl1208: Balance enable_irq_wake() with disable_irq_wake() on cleanup
Date: Sat, 25 Apr 2026 20:36:57 +0200 [thread overview]
Message-ID: <202604251836574d655eb1@mail.local> (raw)
In-Reply-To: <TY3PR01MB1134607A936EAE3F7F2185D3086282@TY3PR01MB11346.jpnprd01.prod.outlook.com>
On 25/04/2026 16:39:16+0000, Biju Das wrote:
> Hi John,
>
> > -----Original Message-----
> > From: John Madieu <john.madieu.xa@bp.renesas.com>
> > Sent: 25 April 2026 16:50
> > Subject: [PATCH 2/2] rtc: isl1208: Balance enable_irq_wake() with disable_irq_wake() on cleanup
> >
> > isl1208_setup_irq() calls enable_irq_wake() after a successful IRQ request, but the driver has no
> > remove path that balances it.
> > The driver is devm-only, so on unbind devm releases the IRQ - but enable_irq_wake() is not undone by
> > IRQ release, so the wake count for that IRQ stays incremented.
> >
> > Each rebind therefore leaks one wake reference; the leak doubles for the chip variant that has a
> > separate evdet IRQ, since
> > isl1208_setup_irq() is then called twice during probe.
>
> Is removal of RTC device possible [1]?
>
> [1]
> https://patchwork.ozlabs.org/project/rtc-linux/patch/20230922081208.26334-1-biju.das.jz@bp.renesas.com/#3195765
>
I'd say yes if this is not the RTC that is backing alarmtimer or
alarmtimer is not compiled in the kernel.
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-04-25 18:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-25 15:49 [PATCH 0/2] rtc: isl1208: Fix IRQ return value and wake reference leak John Madieu
2026-04-25 15:49 ` [PATCH 1/2] rtc: isl1208: Fix returning errno as irqreturn_t in IRQ handler John Madieu
2026-04-25 17:16 ` Biju Das
2026-04-26 17:48 ` John Madieu
2026-04-27 5:51 ` Biju Das
2026-04-25 15:49 ` [PATCH 2/2] rtc: isl1208: Balance enable_irq_wake() with disable_irq_wake() on cleanup John Madieu
2026-04-25 16:39 ` Biju Das
2026-04-25 18:36 ` Alexandre Belloni [this message]
2026-04-26 18:23 ` John Madieu
2026-04-27 6:07 ` Biju Das
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=202604251836574d655eb1@mail.local \
--to=alexandre.belloni@bootlin.com \
--cc=Denis.Osterland@diehl.com \
--cc=akpm@linux-foundation.org \
--cc=biju.das.jz@bp.renesas.com \
--cc=john.madieu.xa@bp.renesas.com \
--cc=john.madieu@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=m.grzeschik@pengutronix.de \
--cc=ryan@bluewatersys.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.