From: Andi Shyti <andi.shyti@kernel.org>
To: Jiawen Liu <1298662399@qq.com>
Cc: Florian Fainelli <florian.fainelli@broadcom.com>,
Ray Jui <rjui@broadcom.com>,
Scott Branden <sbranden@broadcom.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>,
linux-i2c@vger.kernel.org, linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i2c: bcm2835: remove clients before releasing resources
Date: Wed, 2 Dec 2026 16:35:41 +0100 [thread overview]
Message-ID: <axA6v1Gar3Pm7NUa@zenone.zhora.eu> (raw)
In-Reply-To: <tencent_552045D590B2BAEB4E668085BFBF950EF508@qq.com>
Hi Jiawen,
On Sun, Nov 29, 2026 at 04:29:28PM +0400, Jiawen Liu wrote:
> bcm2835_i2c_remove() releases the exclusive clock-rate reservation,
> disables the bus clock, and frees the transfer IRQ before removing the
> adapter. Adapter deletion synchronously invokes bound client remove
> callbacks, and those callbacks may issue I2C transfers. For example,
> ina209 restores its configuration and calibration during removal.
>
> The transfer path waits for completion signaled by the IRQ handler that
> has already been freed, so cleanup times out and may access the controller
> with its bus clock disabled. Remove the adapter first, then release the
> resources after all clients have gone away.
>
> Fixes: f3b54b9a066e ("i2c: add bcm2835 driver")
> Signed-off-by: Jiawen Liu <1298662399@qq.com>
please group similar patches in a series.
Andi
prev parent reply other threads:[~2026-12-02 16:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 12:29 [PATCH] i2c: bcm2835: remove clients before releasing resources Jiawen Liu
2026-12-02 15:35 ` Andi Shyti [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=axA6v1Gar3Pm7NUa@zenone.zhora.eu \
--to=andi.shyti@kernel.org \
--cc=1298662399@qq.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=florian.fainelli@broadcom.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=rjui@broadcom.com \
--cc=sbranden@broadcom.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