From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: shao.mingyin@zte.com.cn
Cc: lee@kernel.org, mfd@lists.linux.dev, tony@atomide.com,
linux-omap@vger.kernel.org, support.opensource@diasemi.com,
patches@opensource.cirrus.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/3] mfd: arizona: Free only registered diagnostic IRQs
Date: Fri, 27 Nov 2026 10:27:39 +0000 [thread overview]
Message-ID: <awlbGwzBhgxJjvaI@opensource.cirrus.com> (raw)
In-Reply-To: <20261127121738923LHjBUaCxdDRPGTYPDZBDV@zte.com.cn>
On Fri, Nov 27, 2026 at 12:17:38PM +0800, shao.mingyin@zte.com.cn wrote:
> arizona_dev_init() requests three diagnostic IRQs before adding MFD
> children. If adding the children fails after any of those requests
> succeed, the probe error path tears down the IRQ mappings while the
> diagnostic IRQ actions are still registered.
>
> Record which requests succeed and free those IRQs before IRQ teardown
> on probe failure and on removal. Diagnostic IRQs remain optional, and
> a failed request never leads to a call to free its action.
>
> Fixes: 3cc729869475 ("mfd: arizona: Core driver")
> Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
> ---
> Changes in v2:
> - Record successful IRQ requests and share cleanup between probe
> failure and removal.
Looks fine to me:
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Personally, I probalby wouldn't have bothered to track them :-)
but it doesn't add much code, so if Lee is happy so am I.
Thanks,
Charles
next prev parent reply other threads:[~2026-11-27 10:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 4:17 [PATCH v2 0/3] mfd: Fix an out-of-bounds IRQ map and error-path bugs shao.mingyin
2026-11-27 4:17 ` [PATCH v2 1/3] mfd: tps65219: Fix the TPS65214 main IRQ bit mapping shao.mingyin
2026-11-27 4:17 ` [PATCH v2 2/3] mfd: arizona: Free only registered diagnostic IRQs shao.mingyin
2026-11-27 10:27 ` Charles Keepax [this message]
2026-11-27 4:17 ` [PATCH v2 3/3] mfd: da9052: Balance the parent IRQ wake reference shao.mingyin
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=awlbGwzBhgxJjvaI@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=patches@opensource.cirrus.com \
--cc=shao.mingyin@zte.com.cn \
--cc=support.opensource@diasemi.com \
--cc=tony@atomide.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 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®