From: Conor Dooley <conor@kernel.org>
To: Jiawen Liu <1298662399@qq.com>
Cc: Conor Dooley <conor.dooley@microchip.com>,
Daire McNamara <daire.mcnamara@microchip.com>,
Andi Shyti <andi.shyti@kernel.org>,
linux-riscv@lists.infradead.org, linux-i2c@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i2c: microchip-corei2c: remove clients before disabling clock
Date: Tue, 1 Dec 2026 18:58:15 +0000 [thread overview]
Message-ID: <20261201-pastime-spectator-b8f82c0ab40d@spud> (raw)
In-Reply-To: <tencent_202F54A564BD43D13D24892EA0133020D806@qq.com>
[-- Attachment #1: Type: text/plain, Size: 1383 bytes --]
On Sun, Nov 29, 2026 at 04:49:59PM +0400, Jiawen Liu wrote:
> mchp_corei2c_remove() disables the controller clock before removing the
> adapter. Adapter deletion synchronously invokes bound client remove
> callbacks, and those callbacks can issue transfers through their existing
> client handle.
>
> Keep the controller clock enabled while clients are removed, and disable
> it after client teardown has completed.
>
> Fixes: 64a6f1c4987e ("i2c: add support for microchip fpga i2c controllers")
> Signed-off-by: Jiawen Liu <1298662399@qq.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Cheers,
Conor.
> ---
> drivers/i2c/busses/i2c-microchip-corei2c.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/i2c/busses/i2c-microchip-corei2c.c b/drivers/i2c/busses/i2c-microchip-corei2c.c
> index e5fa28f20228c..7e772893f4a4b 100644
> --- a/drivers/i2c/busses/i2c-microchip-corei2c.c
> +++ b/drivers/i2c/busses/i2c-microchip-corei2c.c
> @@ -620,8 +620,8 @@ static void mchp_corei2c_remove(struct platform_device *pdev)
> {
> struct mchp_corei2c_dev *idev = platform_get_drvdata(pdev);
>
> - clk_disable_unprepare(idev->i2c_clk);
> i2c_del_adapter(&idev->adapter);
> + clk_disable_unprepare(idev->i2c_clk);
> }
>
> static const struct of_device_id mchp_corei2c_of_match[] = {
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
prev parent reply other threads:[~2026-12-01 18:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 12:49 Jiawen Liu
2026-12-01 18:58 ` Conor Dooley [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=20261201-pastime-spectator-b8f82c0ab40d@spud \
--to=conor@kernel.org \
--cc=1298662399@qq.com \
--cc=andi.shyti@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=daire.mcnamara@microchip.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.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®