From: Sasha Levin <sashal@kernel.org>
To: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Cc: stable@vger.kernel.org,
Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>,
stable <stable@kernel.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH 5.4.y] usb: dwc3: qcom: Don't leave BCR asserted
Date: Tue, 22 Jul 2025 01:01:53 -0400 [thread overview]
Message-ID: <aH8bQfbAOsr8sVmO@lappy> (raw)
In-Reply-To: <53640837-9c42-41a6-a200-f4074e0931e2@oracle.com>
On Mon, Jul 21, 2025 at 09:33:11PM +0530, Harshit Mogalapalli wrote:
>Hi Sasha,
>
>On 21/07/25 21:21, Sasha Levin wrote:
>>From: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
>>
>>[ Upstream commit ef8abc0ba49ce717e6bc4124e88e59982671f3b5 ]
>>
>>Leaving the USB BCR asserted prevents the associated GDSC to turn on. This
>>blocks any subsequent attempts of probing the device, e.g. after a probe
>>deferral, with the following showing in the log:
>>
>>[ 1.332226] usb30_prim_gdsc status stuck at 'off'
>>
>>Leave the BCR deasserted when exiting the driver to avoid this issue.
>>
>>Cc: stable <stable@kernel.org>
>>Fixes: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver")
>>Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
>>Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
>>Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
>>Link: https://lore.kernel.org/r/20250709132900.3408752-1-krishna.kurapati@oss.qualcomm.com
>>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>>[ adapted to individual clock management API instead of bulk clock operations ]
>>Signed-off-by: Sasha Levin <sashal@kernel.org>
>>---
>> drivers/usb/dwc3/dwc3-qcom.c | 8 +++-----
>> 1 file changed, 3 insertions(+), 5 deletions(-)
>>
>>diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c
>>index 742be1e07a01d..4874a6442c806 100644
>>--- a/drivers/usb/dwc3/dwc3-qcom.c
>>+++ b/drivers/usb/dwc3/dwc3-qcom.c
>>@@ -615,13 +615,13 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
>> ret = reset_control_deassert(qcom->resets);
>> if (ret) {
>> dev_err(&pdev->dev, "failed to deassert resets, err=%d\n", ret);
>>- goto reset_assert;
>>+ return ret;
>> }
>> ret = dwc3_qcom_clk_init(qcom, of_clk_get_parent_count(np));
>> if (ret) {
>> dev_err(dev, "failed to get clocks\n");
>>- goto reset_assert;
>>+ return ret;
>> }
>> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>>@@ -700,8 +700,6 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
>> clk_disable_unprepare(qcom->clks[i]);
>> clk_put(qcom->clks[i]);
>> }
>>-reset_assert:
>>- reset_control_assert(qcom->resets);
>> return ret;
>> }
>>@@ -725,7 +723,7 @@ static int dwc3_qcom_remove(struct platform_device *pdev)
>> }
>> qcom->num_clocks = 0;
>>- reset_control_assert(qcom->resets);
>>+ dwc3_qcom_interconnect_exit(qcom);
>
>^^ This part of diff doesn't look good to me. Can you please double
>check the conflict resolution ? (Probably shouldn't have addition in
>this hunk)
You're right! It came from the 5.10 backport which I've cherry picked
onto 5.4. I'll resend.
--
Thanks,
Sasha
next prev parent reply other threads:[~2025-07-22 5:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-21 9:23 FAILED: patch "[PATCH] usb: dwc3: qcom: Don't leave BCR asserted" failed to apply to 5.4-stable tree gregkh
2025-07-21 15:51 ` [PATCH 5.4.y] usb: dwc3: qcom: Don't leave BCR asserted Sasha Levin
2025-07-21 16:03 ` Harshit Mogalapalli
2025-07-22 5:01 ` Sasha Levin [this message]
2025-07-22 5:04 ` [PATCH 5.4.y v2] " Sasha Levin
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=aH8bQfbAOsr8sVmO@lappy \
--to=sashal@kernel.org \
--cc=Thinh.Nguyen@synopsys.com \
--cc=gregkh@linuxfoundation.org \
--cc=harshit.m.mogalapalli@oracle.com \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=krishna.kurapati@oss.qualcomm.com \
--cc=stable@kernel.org \
--cc=stable@vger.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