From: neil.armstrong@linaro.org
To: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>,
Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH] clk: qcom: sm8450: Enable retention for usb controller gdsc
Date: Tue, 10 Jun 2025 11:34:48 +0200 [thread overview]
Message-ID: <2570d61c-a0b6-4dd5-a64c-37b95c6f5023@linaro.org> (raw)
In-Reply-To: <20250610092253.2998351-1-krishna.kurapati@oss.qualcomm.com>
On 10/06/2025 11:22, Krishna Kurapati wrote:
> When USB controller enters runtime suspend while operating in host
> mode, then wakeup because of cable disconnect or a button press of
> a headset causes the following kind of errors:
>
> Error after button press on a connected headset :
>
> [ 355.309260] usb 1-1: reset full-speed USB device number 2 using xhci-hcd
> [ 355.725844] usb 1-1: device not accepting address 2, error -108
>
> Error on removal of headset device from usb port:
>
> [ 157.563136] arm-smmu 15000000.iommu: Unhandled context fault: fsr=0x402
> ,iova=0xd65504710, fsynr=0x100011, cbfrsynra=0x0, cb=6
> [ 157.574842] arm-smmu 15000000.iommu: FSR = 00000402 [Format=2 TF],
> SID=0x0
> [ 157.582181] arm-smmu 15000000.iommu: FSYNR0 = 00100011 [S1CBNDX=16 WNR
> PLVL=1]
> [ 157.589610] xhci-hcd xhci-hcd.0.auto: WARNING: Host Controller Error
> [ 157.596197] xhci-hcd xhci-hcd.0.auto: WARNING: Host Controller Error
>
> Enabling retention on usb controller GDSC fixes the above issues.
>
> Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
> ---
>
> Note:
> The above mentioned issues pop up after I enabled runtime suspend after
> applying [1].
> [1]: https://lore.kernel.org/all/20250610091357.2983085-1-krishna.kurapati@oss.qualcomm.com/
>
> drivers/clk/qcom/gcc-sm8450.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/qcom/gcc-sm8450.c b/drivers/clk/qcom/gcc-sm8450.c
> index 65d7d52bce03..f94da4a1c921 100644
> --- a/drivers/clk/qcom/gcc-sm8450.c
> +++ b/drivers/clk/qcom/gcc-sm8450.c
> @@ -3141,7 +3141,7 @@ static struct gdsc usb30_prim_gdsc = {
> .pd = {
> .name = "usb30_prim_gdsc",
> },
> - .pwrsts = PWRSTS_OFF_ON,
> + .pwrsts = PWRSTS_RET_ON,
> };
>
> static struct clk_regmap *gcc_sm8450_clocks[] = {
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
next prev parent reply other threads:[~2025-06-10 9:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 9:22 [PATCH] clk: qcom: sm8450: Enable retention for usb controller gdsc Krishna Kurapati
2025-06-10 9:34 ` neil.armstrong [this message]
2025-06-10 11:10 ` Dmitry Baryshkov
2025-06-10 12:00 ` neil.armstrong
2025-06-11 3:42 ` Bjorn Andersson
2025-06-11 5:05 ` Krishna Kurapati
2025-06-11 15:10 ` Bjorn Andersson
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=2570d61c-a0b6-4dd5-a64c-37b95c6f5023@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=andersson@kernel.org \
--cc=krishna.kurapati@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@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;
as well as URLs for NNTP newsgroup(s).