Skip to content

Commit e1f31c9

Browse files
moonlinuxvinodkoul
authored andcommitted
phy: amlogic: meson8b-usb2: Power off the PHY by putting it into reset mode
Power off the PHY by putting it into reset mode. Cc: Martin Blumenstingl <[email protected]> Acked-by: Martin Blumenstingl <[email protected]> Signed-off-by: Anand Moon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 7508d1e commit e1f31c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/phy/amlogic/phy-meson8b-usb2.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ static int phy_meson8b_usb2_power_off(struct phy *phy)
219219
clk_disable_unprepare(priv->clk_usb);
220220
clk_disable_unprepare(priv->clk_usb_general);
221221

222+
/* power off the PHY by putting it into reset mode */
223+
regmap_update_bits(priv->regmap, REG_CTRL, REG_CTRL_POWER_ON_RESET,
224+
REG_CTRL_POWER_ON_RESET);
225+
222226
return 0;
223227
}
224228

0 commit comments

Comments
 (0)