Merge "usb: phy: qmp: Select usb3 phy mode during PHY reset"
This commit is contained in:
commit
a92ee0d3f5
1 changed files with 4 additions and 4 deletions
|
@ -330,10 +330,6 @@ static int msm_ssphy_qmp_init(struct usb_phy *uphy)
|
|||
phy->clk_enabled = true;
|
||||
}
|
||||
|
||||
/* select usb3 phy mode */
|
||||
if (phy->tcsr_usb3_dp_phymode)
|
||||
writel_relaxed(0x0, phy->tcsr_usb3_dp_phymode);
|
||||
|
||||
writel_relaxed(0x01,
|
||||
phy->base + phy->phy_reg[USB3_PHY_POWER_DOWN_CONTROL]);
|
||||
|
||||
|
@ -409,6 +405,10 @@ static int msm_ssphy_qmp_reset(struct usb_phy *uphy)
|
|||
goto deassert_phy_phy_reset;
|
||||
}
|
||||
|
||||
/* select usb3 phy mode */
|
||||
if (phy->tcsr_usb3_dp_phymode)
|
||||
writel_relaxed(0x0, phy->tcsr_usb3_dp_phymode);
|
||||
|
||||
/* Deassert USB3 PHY CSR reset */
|
||||
ret = reset_control_deassert(phy->phy_reset);
|
||||
if (ret) {
|
||||
|
|
Loading…
Add table
Reference in a new issue