Message ID | 20210817041548.1276-6-linux.amoon@gmail.com |
---|---|
State | Accepted |
Commit | e1f31c93a8d292f2e5b17daa384feaa28453f25e |
Headers | show |
Series | [PATCHv3,1/6] ARM: dts: meson8b: odroidc1: Add usb phy power node | expand |
On 17-08-21, 09:45, Anand Moon wrote:
> Power off the PHY by putting it into reset mode.
Applied, thanks
diff --git a/drivers/phy/amlogic/phy-meson8b-usb2.c b/drivers/phy/amlogic/phy-meson8b-usb2.c index 03c061dd5f0d..2aad45c55494 100644 --- a/drivers/phy/amlogic/phy-meson8b-usb2.c +++ b/drivers/phy/amlogic/phy-meson8b-usb2.c @@ -219,6 +219,10 @@ static int phy_meson8b_usb2_power_off(struct phy *phy) clk_disable_unprepare(priv->clk_usb); clk_disable_unprepare(priv->clk_usb_general); + /* power off the PHY by putting it into reset mode */ + regmap_update_bits(priv->regmap, REG_CTRL, REG_CTRL_POWER_ON_RESET, + REG_CTRL_POWER_ON_RESET); + return 0; }