* [PATCH] i2c: axxia: remove clients before disabling the clock
@ 2026-11-29 12:46 Jiawen Liu
2026-12-02 15:34 ` Andi Shyti
0 siblings, 1 reply; 2+ messages in thread
From: Jiawen Liu @ 2026-11-29 12:46 UTC (permalink / raw)
To: Andi Shyti; +Cc: linux-i2c, linux-kernel
axxia_i2c_remove() disables the controller clock before removing the
adapter. Adapter deletion synchronously invokes bound client remove
callbacks, and a client may issue transfers through its existing adapter
handle until its callback returns. For example, m62332 turns off its DAC
outputs during removal.
Keep the controller clock enabled while clients are removed, and disable
it after client teardown has completed.
Fixes: 08678b850cd0 ("i2c: axxia: Add I2C driver for AXM55xx")
Signed-off-by: Jiawen Liu <1298662399@qq.com>
---
drivers/i2c/busses/i2c-axxia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-axxia.c b/drivers/i2c/busses/i2c-axxia.c
index d1744c0ae7bbe..8350c3cb3a3f6 100644
--- a/drivers/i2c/busses/i2c-axxia.c
+++ b/drivers/i2c/busses/i2c-axxia.c
@@ -795,8 +795,8 @@ static void axxia_i2c_remove(struct platform_device *pdev)
{
struct axxia_i2c_dev *idev = platform_get_drvdata(pdev);
- clk_disable_unprepare(idev->i2c_clk);
i2c_del_adapter(&idev->adapter);
+ clk_disable_unprepare(idev->i2c_clk);
}
/* Match table for of_platform binding */
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] i2c: axxia: remove clients before disabling the clock
2026-11-29 12:46 [PATCH] i2c: axxia: remove clients before disabling the clock Jiawen Liu
@ 2026-12-02 15:34 ` Andi Shyti
0 siblings, 0 replies; 2+ messages in thread
From: Andi Shyti @ 2026-12-02 15:34 UTC (permalink / raw)
To: Jiawen Liu; +Cc: linux-i2c, linux-kernel
Hi Jiawen,
On Sun, Nov 29, 2026 at 04:46:47PM +0400, Jiawen Liu wrote:
> axxia_i2c_remove() disables the controller clock before removing the
> adapter. Adapter deletion synchronously invokes bound client remove
> callbacks, and a client may issue transfers through its existing adapter
> handle until its callback returns. For example, m62332 turns off its DAC
> outputs during removal.
>
> Keep the controller clock enabled while clients are removed, and disable
> it after client teardown has completed.
>
> Fixes: 08678b850cd0 ("i2c: axxia: Add I2C driver for AXM55xx")
> Signed-off-by: Jiawen Liu <1298662399@qq.com>
please group similar patches in a series.
Andi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-02 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 12:46 [PATCH] i2c: axxia: remove clients before disabling the clock Jiawen Liu
2026-12-02 15:34 ` Andi Shyti
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®