aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy/amlogic
diff options
context:
space:
mode:
authorAnand Moon <linux.amoon@gmail.com>2021-08-17 09:45:39 +0530
committerVinod Koul <vkoul@kernel.org>2021-08-17 16:00:44 +0530
commite1f31c93a8d292f2e5b17daa384feaa28453f25e (patch)
tree14fe07281bc2b6d789e2ba3a57195100677a67f9 /drivers/phy/amlogic
parentphy: phy-mtk-mipi-dsi: convert to devm_platform_ioremap_resource (diff)
downloadlinux-dev-e1f31c93a8d292f2e5b17daa384feaa28453f25e.tar.xz
linux-dev-e1f31c93a8d292f2e5b17daa384feaa28453f25e.zip
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 <martin.blumenstingl@googlemail.com> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Anand Moon <linux.amoon@gmail.com> Link: https://lore.kernel.org/r/20210817041548.1276-6-linux.amoon@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/amlogic')
-rw-r--r--drivers/phy/amlogic/phy-meson8b-usb2.c4
1 files changed, 4 insertions, 0 deletions
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;
}