Commit 5daba914 authored by Shang XiaoJing's avatar Shang XiaoJing Committed by Vinod Koul

phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on()

The clk_disable_unprepare() should be called in the error handling of
rockchip_usb2phy_power_on().

Fixes: 0e08d2a7 ("phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy")
Signed-off-by: default avatarShang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/r/20221205115823.16957-1-shangxiaojing@huawei.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent ec4a1d93
......@@ -485,8 +485,10 @@ static int rockchip_usb2phy_power_on(struct phy *phy)
return ret;
ret = property_enable(base, &rport->port_cfg->phy_sus, false);
if (ret)
if (ret) {
clk_disable_unprepare(rphy->clk480m);
return ret;
}
/* waiting for the utmi_clk to become stable */
usleep_range(1500, 2000);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment