From: Changhuang Liang <changhuang.liang@starfivetech.com>
To: Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>
Cc: Dan Carpenter <dan.carpenter@linaro.org>,
linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org,
Keith Zhao <keith.zhao@starfivetech.com>,
Changhuang Liang <changhuang.liang@starfivetech.com>
Subject: [v2] phy: starfive: jh7110-dphy-tx: Add missing clk_disable_unprepare()
Date: Thu, 27 Feb 2025 23:31:27 -0800 [thread overview]
Message-ID: <20250228073127.635755-1-changhuang.liang@starfivetech.com> (raw)
Once the reset_control_deassert() fails, we need to run the missing
clk_disable_unprepare() before return in stf_dphy_init().
Fixes: d3ab79553308 ("phy: starfive: Add mipi dphy tx support")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202410310715.duo3ShR4-lkp@intel.com/
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Reviewed-by: Keith Zhao <keith.zhao@starfivetech.com>
---
v2: Add Keith reviewed tag.
drivers/phy/starfive/phy-jh7110-dphy-tx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/phy/starfive/phy-jh7110-dphy-tx.c b/drivers/phy/starfive/phy-jh7110-dphy-tx.c
index c64d1c91b130..7b59496983d2 100644
--- a/drivers/phy/starfive/phy-jh7110-dphy-tx.c
+++ b/drivers/phy/starfive/phy-jh7110-dphy-tx.c
@@ -330,6 +330,7 @@ static int stf_dphy_init(struct phy *phy)
ret = reset_control_deassert(dphy->sys_rst);
if (ret) {
+ clk_disable_unprepare(dphy->txesc_clk);
dev_err(dphy->dev, "Failed to deassert sys_rst\n");
return ret;
}
--
2.25.1
reply other threads:[~2025-02-28 7:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20250228073127.635755-1-changhuang.liang@starfivetech.com \
--to=changhuang.liang@starfivetech.com \
--cc=dan.carpenter@linaro.org \
--cc=keith.zhao@starfivetech.com \
--cc=kishon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=vkoul@kernel.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®