From: Krzysztof Kozlowski <krzk@kernel.org>
To: Myeonghun Pak <mhun512@gmail.com>,
MyungJoo Ham <myungjoo.ham@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
Ijae Kim <ae878000@gmail.com>
Subject: Re: [PATCH] extcon: ptn5150: request the IRQ after the resources its work uses
Date: Thu, 12 Nov 2026 08:51:00 +0100 [thread overview]
Message-ID: <9732f8f5-151e-484d-b75f-6ad74b64f041@kernel.org> (raw)
In-Reply-To: <20261112070355.38837-1-mhun512@gmail.com>
On 12/11/2026 08:03, Myeonghun Pak wrote:
> The IRQ is requested before the work cleanup action is registered.
> On unbind, devres cancels irq_work and releases its switches before
> freeing the IRQ, allowing an interrupt to queue work against released
> resources. Earlier probe failures can leave the work uncancelled.
>
> Request the IRQ after registering the cleanup action so devres frees
> it before cancelling the work and releasing its resources. Keep
> ptn5150_init_dev_type() after the IRQ request: clearing pending status
> before installing the falling-edge handler can lose an interrupt.
>
> Found by a static analysis tool under development.
LLM is not a static analysis tool. Mentioning unknown tool is pointless.
>
> Compile-tested with W=1 for arm64 and x86_64.
> Not tested on hardware.
Drop from commit msg. Such information goes to changelog, not commit msg.
>
> Fixes: 782cd939cbe0 ("extcon: ptn5150: Add queue work sync before driver release")
> Cc: stable@vger.kernel.org
With above fixed:
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
prev parent reply other threads:[~2026-11-12 7:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 7:03 Myeonghun Pak
2026-11-12 7:51 ` Krzysztof Kozlowski [this message]
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=9732f8f5-151e-484d-b75f-6ad74b64f041@kernel.org \
--to=krzk@kernel.org \
--cc=ae878000@gmail.com \
--cc=cw00.choi@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhun512@gmail.com \
--cc=myungjoo.ham@samsung.com \
--cc=stable@vger.kernel.org \
/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®