[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<ZQ0PR01MB13026A8A255C794C4C340EF0F213A@ZQ0PR01MB1302.CHNPR01.prod.partner.outlook.cn>
Date: Thu, 9 Jan 2025 08:16:36 +0000
From: Changhuang Liang <changhuang.liang@...rfivetech.com>
To: Vinod Koul <vkoul@...nel.org>, Kishon Vijay Abraham I <kishon@...nel.org>
CC: Keith Zhao <keith.zhao@...rfivetech.com>, Dan Carpenter
<dan.carpenter@...aro.org>, "linux-phy@...ts.infradead.org"
<linux-phy@...ts.infradead.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>
Subject:
回复: [PATCH] phy: starfive: jh7110-dphy-tx: Add missing clk_disable_unprepare()
Hi, Vinod
Could you help to review this patch? Thanks for your timer.
> 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@...el.com>
> Reported-by: Dan Carpenter <dan.carpenter@...aro.org>
> Closes: https://lore.kernel.org/r/202410310715.duo3ShR4-lkp@intel.com/
> Signed-off-by: Changhuang Liang <changhuang.liang@...rfivetech.com>
> ---
> 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
Best Regards,
Changhuang
Powered by blists - more mailing lists