mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on()
[ Upstream commit5daba914da
] The clk_disable_unprepare() should be called in the error handling of rockchip_usb2phy_power_on(). Fixes:0e08d2a727
("phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy") Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com> Link: https://lore.kernel.org/r/20221205115823.16957-1-shangxiaojing@huawei.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
01bdcc73db
commit
397aaac884
1 changed files with 3 additions and 1 deletions
|
@ -467,8 +467,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);
|
||||
|
|
Loading…
Reference in a new issue