mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
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>
This commit is contained in:
parent
7508d1e403
commit
e1f31c93a8
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
clk_disable_unprepare(priv->clk_usb_general);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue