hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
....@@ -888,8 +888,10 @@
888888 goto unlock;
889889
890890 ret = property_enable(base, &rport->port_cfg->phy_sus, false);
891
- if (ret)
891
+ if (ret) {
892
+ clk_disable_unprepare(rphy->clk480m);
892893 goto unlock;
894
+ }
893895
894896 /*
895897 * For rk3588, it needs to reset phy when exit from
....@@ -902,8 +904,10 @@
902904 if (rport->port_id == USB2PHY_PORT_OTG &&
903905 of_device_is_compatible(rphy->dev->of_node, "rockchip,rk3588-usb2phy")) {
904906 ret = rockchip_usb2phy_reset(rphy);
905
- if (ret)
907
+ if (ret) {
908
+ clk_disable_unprepare(rphy->clk480m);
906909 goto unlock;
910
+ }
907911 }
908912
909913 /* waiting for the utmi_clk to become stable */