From: Philipp Zabel <p.zabel@pengutronix.de>
To: Felix Gu <ustc.gu@gmail.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Frank Li <Frank.Li@nxp.com>, Aniket <aniketmaurya@google.com>
Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i3c: master: dw-i3c: Assert reset control in remove() callback
Date: Mon, 16 Mar 2026 15:39:43 +0100 [thread overview]
Message-ID: <d862d82f08d6e1378e262e17e6af3442a66e218e.camel@pengutronix.de> (raw)
In-Reply-To: <20260316-dw-i3c-v1-1-ab41904fc780@gmail.com>
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
prev parent reply other threads:[~2026-03-16 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-16 13:55 Felix Gu
2026-03-16 14:39 ` Philipp Zabel [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=d862d82f08d6e1378e262e17e6af3442a66e218e.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=Frank.Li@nxp.com \
--cc=alexandre.belloni@bootlin.com \
--cc=aniketmaurya@google.com \
--cc=linux-i3c@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ustc.gu@gmail.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
all inboxes | Powered by JetHome®