Linux-i3c Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i3c: master: dw-i3c: Assert reset control in remove() callback
@ 2026-03-16 13:55 Felix Gu
  2026-03-16 14:39 ` Philipp Zabel
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Gu @ 2026-03-16 13:55 UTC (permalink / raw)
  To: Alexandre Belloni, Frank Li, Philipp Zabel, Aniket
  Cc: linux-i3c, linux-kernel, Felix Gu

The reset line acquired during probe is currently left unasserted
when the driver is unbound. Add the missing reset_control_assert()
call to properly reset the hardware when the driver is unbound.

Fixes: 62fe9d06f570 ("i3c: dw: Add power management support")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
---
 drivers/i3c/master/dw-i3c-master.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c
index d87bde3f7700..5303282eb816 100644
--- a/drivers/i3c/master/dw-i3c-master.c
+++ b/drivers/i3c/master/dw-i3c-master.c
@@ -1690,6 +1690,8 @@ void dw_i3c_common_remove(struct dw_i3c_master *master)
 	pm_runtime_disable(master->dev);
 	pm_runtime_set_suspended(master->dev);
 	pm_runtime_dont_use_autosuspend(master->dev);
+
+	reset_control_assert(master->core_rst);
 }
 EXPORT_SYMBOL_GPL(dw_i3c_common_remove);
 

---
base-commit: b84a0ebe421ca56995ff78b66307667b62b3a900
change-id: 20260316-dw-i3c-e7a36bc90682

Best regards,
-- 
Felix Gu <ustc.gu@gmail.com>


-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] i3c: master: dw-i3c: Assert reset control in remove() callback
  2026-03-16 13:55 [PATCH] i3c: master: dw-i3c: Assert reset control in remove() callback Felix Gu
@ 2026-03-16 14:39 ` Philipp Zabel
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Zabel @ 2026-03-16 14:39 UTC (permalink / raw)
  To: Felix Gu, Alexandre Belloni, Frank Li, Aniket; +Cc: linux-i3c, linux-kernel

On Mo, 2026-03-16 at 21:55 +0800, Felix Gu wrote:
> The reset line acquired during probe is currently left unasserted
> when the driver is unbound. Add the missing reset_control_assert()
> call to properly reset the hardware when the driver is unbound.
> 
> Fixes: 62fe9d06f570 ("i3c: dw: Add power management support")
> Signed-off-by: Felix Gu <ustc.gu@gmail.com>
> ---
>  drivers/i3c/master/dw-i3c-master.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c
> index d87bde3f7700..5303282eb816 100644
> --- a/drivers/i3c/master/dw-i3c-master.c
> +++ b/drivers/i3c/master/dw-i3c-master.c
> @@ -1690,6 +1690,8 @@ void dw_i3c_common_remove(struct dw_i3c_master *master)
>  	pm_runtime_disable(master->dev);
>  	pm_runtime_set_suspended(master->dev);
>  	pm_runtime_dont_use_autosuspend(master->dev);
> +
> +	reset_control_assert(master->core_rst);

Switching to devm_reset_control_get_optional_exclusive_deasserted() and
removing the reset_control_deassert() in dw_i3c_common_probe() would
have the same effect.

regards
Philipp

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-16 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 13:55 [PATCH] i3c: master: dw-i3c: Assert reset control in remove() callback Felix Gu
2026-03-16 14:39 ` Philipp Zabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox