From: Anand Moon <linux.amoon@gmail•com>
To: linux-phy@lists•infradead.org,
linux-arm-kernel@lists•infradead.org,
linux-amlogic@lists•infradead.org, linux-kernel@vger•kernel.org
Cc: Anand Moon <linux.amoon@gmail•com>,
Matt Corallo <oc2udbzfd@mattcorallo•com>,
Martin Blumenstingl <martin.blumenstingl@googlemail•com>,
Rob Herring <robh+dt@kernel•org>,
Neil Armstrong <narmstrong@baylibre•com>,
Kevin Hilman <khilman@baylibre•com>,
Jerome Brunet <jbrunet@baylibre•com>,
Kishon Vijay Abraham I <kishon@ti•com>,
Vinod Koul <vkoul@kernel•org>,
Emiliano Ingrassia <ingrassia@epigenesys•com>,
devicetree@vger•kernel.org
Subject: [PATCHv1 2/3] phy: amlogic: meson8b-usb2: Power off the PHY by putting it into reset mode
Date: Tue, 13 Jul 2021 05:52:14 +0000 [thread overview]
Message-ID: <20210713055227.1142-3-linux.amoon@gmail.com> (raw)
In-Reply-To: <20210713055227.1142-1-linux.amoon@gmail.com>
Power off the PHY by putting it into reset mode.
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail•com>
Signed-off-by: Anand Moon <linux.amoon@gmail•com>
---
Fix the commit message.
rfc - Keep vendor driver sequence for the power on reset of usb phy
[0] https://patchwork.kernel.org/project/linux-amlogic/patch/20210617194154.2397-8-linux.amoon@gmail.com/
---
drivers/phy/amlogic/phy-meson8b-usb2.c | 4 ++++
1 file changed, 4 insertions(+)
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;
}
--
2.32.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-07-13 5:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-13 5:52 [PATCHv1 0/3] Meson-8b and Meson-gxbb Fix some missing code Anand Moon
2021-07-13 5:52 ` [PATCHv1 1/3] ARM: dts: meson8b: odroidc1: Add usb phy power node Anand Moon
2021-07-13 15:05 ` Martin Blumenstingl
2021-07-13 18:44 ` Anand Moon
2021-07-13 20:35 ` Martin Blumenstingl
2021-07-14 11:59 ` Anand Moon
2021-07-14 17:25 ` Anand Moon
2021-07-14 23:30 ` Martin Blumenstingl
2021-07-15 10:24 ` Anand Moon
2021-07-13 5:52 ` Anand Moon [this message]
2021-07-13 15:10 ` [PATCHv1 2/3] phy: amlogic: meson8b-usb2: Power off the PHY by putting it into reset mode Martin Blumenstingl
2021-07-13 5:52 ` [PATCHv1 3/3] phy: amlogic: meson8b-usb2: don't log an error on -EPROBE_DEFER Anand Moon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210713055227.1142-3-linux.amoon@gmail.com \
--to=linux.amoon@gmail$(echo .)com \
--cc=devicetree@vger$(echo .)kernel.org \
--cc=ingrassia@epigenesys$(echo .)com \
--cc=jbrunet@baylibre$(echo .)com \
--cc=khilman@baylibre$(echo .)com \
--cc=kishon@ti$(echo .)com \
--cc=linux-amlogic@lists$(echo .)infradead.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-phy@lists$(echo .)infradead.org \
--cc=martin.blumenstingl@googlemail$(echo .)com \
--cc=narmstrong@baylibre$(echo .)com \
--cc=oc2udbzfd@mattcorallo$(echo .)com \
--cc=robh+dt@kernel$(echo .)org \
--cc=vkoul@kernel$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox