From: Manivannan Sadhasivam <mani@kernel.org>
To: Soheyb Boulaa <soheyb_boulaa@proton.me>
Cc: Vinod Koul <vkoul@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Peter Griffin <peter.griffin@linaro.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>,
linux-phy@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH v3 1/3] phy: exynos5-usbdrd: power the Exynos2200 phy down when its init fails
Date: Fri, 27 Nov 2026 19:21:18 +0530 [thread overview]
Message-ID: <179578747867.13164.15624215435732669514.b4-reply@b4> (raw)
In-Reply-To: <20261114064400.45572-2-soheyb_boulaa@proton.me>
On 2026-11-14 06:44 +0000, Soheyb Boulaa wrote:
> exynos2200_usbdrd_phy_init() enables the regulators of the UTMI phy and
> takes the phy out of isolation in the PMU before it enables the clocks.
> When clk_bulk_prepare_enable() fails, it returns without undoing
> either. The phy core does not count a failed init, so no exit undoes
> them later: the phy stays out of isolation, and its supplies stay
> enabled, until an init and an exit succeed.
>
> Isolate the phy again and disable the UTMI regulators when the clocks
> or the phy-specific init fail. The phy-specific init does not fail yet;
> the next patch makes the UTMI init return the result of the init of the
Then add the error handling in next patch.
> high-speed phy.
>
> Fixes: cc52a697f87e ("phy: exynos5-usbdrd: support Exynos USBDRD 3.2 4nm controller")
> Cc: stable@vger.kernel.org
This patch is not a critical fix to backport. Please drop the tag.
> Signed-off-by: Soheyb Boulaa <soheyb_boulaa@proton.me>
> ---
> v3: full name in From and Signed-off-by.
> v2: new patch.
>
> drivers/phy/samsung/phy-exynos5-usbdrd.c | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c
> index 087d552..a6fe779 100644
> --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c
> +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c
> @@ -1462,7 +1462,7 @@ static int exynos2200_usbdrd_phy_init(struct phy *phy)
>
> ret = clk_bulk_prepare_enable(phy_drd->drv_data->n_clks, phy_drd->clks);
> if (ret)
> - return ret;
> + goto power_down;
>
> /* Set up the link controller */
> exynos2200_usbdrd_link_init(phy_drd);
> @@ -1475,6 +1475,17 @@ static int exynos2200_usbdrd_phy_init(struct phy *phy)
>
> clk_bulk_disable_unprepare(phy_drd->drv_data->n_clks, phy_drd->clks);
>
> + if (ret)
> + goto power_down;
Is there a logic in doing the error check here?
- Mani
next prev parent reply other threads:[~2026-11-27 13:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-14 6:44 [PATCH v3 0/3] phy: exynos5-usbdrd: fix HS phy init count on Exynos2200 Soheyb Boulaa
2026-11-14 6:44 ` [PATCH v3 1/3] phy: exynos5-usbdrd: power the Exynos2200 phy down when its init fails Soheyb Boulaa
2026-11-27 13:51 ` Manivannan Sadhasivam [this message]
2026-11-14 6:44 ` [PATCH v3 2/3] phy: exynos5-usbdrd: return the Exynos2200 high-speed phy init error Soheyb Boulaa
2026-11-27 13:52 ` Manivannan Sadhasivam
2026-11-14 6:44 ` [PATCH v3 3/3] phy: exynos5-usbdrd: fix HS phy init count imbalance on Exynos2200 Soheyb Boulaa
2026-11-27 13:54 ` Manivannan Sadhasivam
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=179578747867.13164.15624215435732669514.b4-reply@b4 \
--to=mani@kernel.org \
--cc=alim.akhtar@samsung.com \
--cc=ivo.ivanov.ivanov1@gmail.com \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=peter.griffin@linaro.org \
--cc=soheyb_boulaa@proton.me \
--cc=stable@vger.kernel.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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
all inboxes | Powered by JetHome®