phy: amlogic: meson8b-usb2: Power off the PHY by putting it into reset mode
[linux-2.6-microblaze.git] / drivers / phy / amlogic / phy-meson8b-usb2.c
index 03c061d..2aad45c 100644 (file)
@@ -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;
 }