mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
phy: rockchip-inno-combphy: avoid reinit usb3 phy
When the combphy work as USB3 PHY (e.g. RK1808 EVB USB3 port), the PHY init and exit ops are called dynamically in the runtime process of USB3 controller driver. Because it only needs to init the USB3 PHY once in the PHY init, and reinit the USB3 PHY in the runtime process may cause USB3 work abnormally, so this patch doesn't clear the phy_initialized flag for USB3 in the PHY exit ops. Change-Id: Ifc2eb3edac25bd10db6d47b4c9e197cc15c4aef7 Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
@@ -464,13 +464,12 @@ static int rockchip_combphy_exit(struct phy *phy)
|
||||
*/
|
||||
clk_disable_unprepare(priv->ref_clk);
|
||||
|
||||
priv->phy_initialized = false;
|
||||
|
||||
/* in case of waiting phy PLL lock timeout */
|
||||
if (priv->phy_type == PHY_TYPE_PCIE) {
|
||||
reset_control_assert(priv->rsts[PHY_GRF_P_RSTN]);
|
||||
udelay(5);
|
||||
reset_control_deassert(priv->rsts[PHY_GRF_P_RSTN]);
|
||||
priv->phy_initialized = false;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user