| .. | .. |
|---|
| 888 | 888 | goto unlock; |
|---|
| 889 | 889 | |
|---|
| 890 | 890 | ret = property_enable(base, &rport->port_cfg->phy_sus, false); |
|---|
| 891 | | - if (ret) |
|---|
| 891 | + if (ret) { |
|---|
| 892 | + clk_disable_unprepare(rphy->clk480m); |
|---|
| 892 | 893 | goto unlock; |
|---|
| 894 | + } |
|---|
| 893 | 895 | |
|---|
| 894 | 896 | /* |
|---|
| 895 | 897 | * For rk3588, it needs to reset phy when exit from |
|---|
| .. | .. |
|---|
| 902 | 904 | if (rport->port_id == USB2PHY_PORT_OTG && |
|---|
| 903 | 905 | of_device_is_compatible(rphy->dev->of_node, "rockchip,rk3588-usb2phy")) { |
|---|
| 904 | 906 | ret = rockchip_usb2phy_reset(rphy); |
|---|
| 905 | | - if (ret) |
|---|
| 907 | + if (ret) { |
|---|
| 908 | + clk_disable_unprepare(rphy->clk480m); |
|---|
| 906 | 909 | goto unlock; |
|---|
| 910 | + } |
|---|
| 907 | 911 | } |
|---|
| 908 | 912 | |
|---|
| 909 | 913 | /* waiting for the utmi_clk to become stable */ |
|---|