* [PATCH] Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports"
@ 2024-12-06 17:24 Johan Hovold
2024-12-07 21:49 ` Abel Vesa
2024-12-17 16:38 ` Bjorn Andersson
0 siblings, 2 replies; 4+ messages in thread
From: Johan Hovold @ 2024-12-06 17:24 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Baryshkov,
Jonathan Marek, Stephan Gerhold, Abel Vesa, linux-arm-msm,
devicetree, linux-kernel, regressions, Johan Hovold
This reverts commit 1a48dd7b9ac809d1bd0fd2fef509abba83433846.
A recent change enabling OTG mode on the Lenovo ThinkPad T14s USB-C
ports can break SuperSpeed device hotplugging. The host controller is
enumerated, but the device is not:
xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 3
xhci-hcd xhci-hcd.5.auto: hcc params 0x0110ffc5 hci version 0x110 quirks 0x000080a000000810
xhci-hcd xhci-hcd.5.auto: irq 247, io mem 0x0a800000
xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 4
xhci-hcd xhci-hcd.5.auto: Host supports USB 3.1 Enhanced SuperSpeed
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
Once this happens on either of the two ports, no amount of disconnecting
and reconnecting makes the SuperSpeed device be enumerated, while
FullSpeed device enumeration still works.
With retimer (and orientation detection) support not even merged yet,
let's revert at least until we have stable host mode in mainline.
Fixes: 1a48dd7b9ac8 ("arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports")
Cc: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
I have not been able to reproduce this on the (third port of) the CRD,
but I hit this constantly with the T14s so let's start with reverting
there.
Note that Stephan has already identified another problem with the
offending commit here:
https://lore.kernel.org/all/ZxZO6Prrm2ITUZMQ@linaro.org/
Johan
#regzbot introduced: 1a48dd7b9ac8
.../arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
index 5a4a72a030d4..b4b6260c670c 100644
--- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
+++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
@@ -1515,6 +1515,10 @@ &usb_1_ss0 {
status = "okay";
};
+&usb_1_ss0_dwc3 {
+ dr_mode = "host";
+};
+
&usb_1_ss0_dwc3_hs {
remote-endpoint = <&pmic_glink_ss0_hs_in>;
};
@@ -1543,6 +1547,10 @@ &usb_1_ss1 {
status = "okay";
};
+&usb_1_ss1_dwc3 {
+ dr_mode = "host";
+};
+
&usb_1_ss1_dwc3_hs {
remote-endpoint = <&pmic_glink_ss1_hs_in>;
};
--
2.45.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports"
2024-12-06 17:24 [PATCH] Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports" Johan Hovold
@ 2024-12-07 21:49 ` Abel Vesa
2024-12-17 16:38 ` Bjorn Andersson
1 sibling, 0 replies; 4+ messages in thread
From: Abel Vesa @ 2024-12-07 21:49 UTC (permalink / raw)
To: Johan Hovold
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Dmitry Baryshkov, Jonathan Marek, Stephan Gerhold,
linux-arm-msm, devicetree, linux-kernel, regressions
On 24-12-06 18:24:02, Johan Hovold wrote:
> This reverts commit 1a48dd7b9ac809d1bd0fd2fef509abba83433846.
>
> A recent change enabling OTG mode on the Lenovo ThinkPad T14s USB-C
> ports can break SuperSpeed device hotplugging. The host controller is
> enumerated, but the device is not:
>
> xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
> xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 3
> xhci-hcd xhci-hcd.5.auto: hcc params 0x0110ffc5 hci version 0x110 quirks 0x000080a000000810
> xhci-hcd xhci-hcd.5.auto: irq 247, io mem 0x0a800000
> xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
> xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 4
> xhci-hcd xhci-hcd.5.auto: Host supports USB 3.1 Enhanced SuperSpeed
> hub 3-0:1.0: USB hub found
> hub 3-0:1.0: 1 port detected
> hub 4-0:1.0: USB hub found
> hub 4-0:1.0: 1 port detected
>
> Once this happens on either of the two ports, no amount of disconnecting
> and reconnecting makes the SuperSpeed device be enumerated, while
> FullSpeed device enumeration still works.
>
> With retimer (and orientation detection) support not even merged yet,
> let's revert at least until we have stable host mode in mainline.
>
> Fixes: 1a48dd7b9ac8 ("arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports")
> Cc: Jonathan Marek <jonathan@marek.ca>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
> ---
>
> I have not been able to reproduce this on the (third port of) the CRD,
> but I hit this constantly with the T14s so let's start with reverting
> there.
>
> Note that Stephan has already identified another problem with the
> offending commit here:
>
> https://lore.kernel.org/all/ZxZO6Prrm2ITUZMQ@linaro.org/
>
> Johan
>
>
> #regzbot introduced: 1a48dd7b9ac8
>
>
>
> .../arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
> index 5a4a72a030d4..b4b6260c670c 100644
> --- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
> +++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
> @@ -1515,6 +1515,10 @@ &usb_1_ss0 {
> status = "okay";
> };
>
> +&usb_1_ss0_dwc3 {
> + dr_mode = "host";
> +};
> +
> &usb_1_ss0_dwc3_hs {
> remote-endpoint = <&pmic_glink_ss0_hs_in>;
> };
> @@ -1543,6 +1547,10 @@ &usb_1_ss1 {
> status = "okay";
> };
>
> +&usb_1_ss1_dwc3 {
> + dr_mode = "host";
> +};
> +
> &usb_1_ss1_dwc3_hs {
> remote-endpoint = <&pmic_glink_ss1_hs_in>;
> };
> --
> 2.45.2
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports"
2024-12-06 17:24 [PATCH] Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports" Johan Hovold
2024-12-07 21:49 ` Abel Vesa
@ 2024-12-17 16:38 ` Bjorn Andersson
2024-12-17 17:12 ` Johan Hovold
1 sibling, 1 reply; 4+ messages in thread
From: Bjorn Andersson @ 2024-12-17 16:38 UTC (permalink / raw)
To: Konrad Dybcio, Johan Hovold
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Baryshkov,
Jonathan Marek, Stephan Gerhold, Abel Vesa, linux-arm-msm,
devicetree, linux-kernel, regressions
On Fri, 06 Dec 2024 18:24:02 +0100, Johan Hovold wrote:
> This reverts commit 1a48dd7b9ac809d1bd0fd2fef509abba83433846.
>
> A recent change enabling OTG mode on the Lenovo ThinkPad T14s USB-C
> ports can break SuperSpeed device hotplugging. The host controller is
> enumerated, but the device is not:
>
> xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
> xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 3
> xhci-hcd xhci-hcd.5.auto: hcc params 0x0110ffc5 hci version 0x110 quirks 0x000080a000000810
> xhci-hcd xhci-hcd.5.auto: irq 247, io mem 0x0a800000
> xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
> xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 4
> xhci-hcd xhci-hcd.5.auto: Host supports USB 3.1 Enhanced SuperSpeed
> hub 3-0:1.0: USB hub found
> hub 3-0:1.0: 1 port detected
> hub 4-0:1.0: USB hub found
> hub 4-0:1.0: 1 port detected
>
> [...]
Applied, thanks!
[1/1] Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports"
commit: 1fb5cf0d165afc3be76ec754d1b1013515c3896a
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports"
2024-12-17 16:38 ` Bjorn Andersson
@ 2024-12-17 17:12 ` Johan Hovold
0 siblings, 0 replies; 4+ messages in thread
From: Johan Hovold @ 2024-12-17 17:12 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Konrad Dybcio, Johan Hovold, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Dmitry Baryshkov, Jonathan Marek, Stephan Gerhold,
Abel Vesa, linux-arm-msm, devicetree, linux-kernel, regressions
On Tue, Dec 17, 2024 at 10:38:51AM -0600, Bjorn Andersson wrote:
>
> On Fri, 06 Dec 2024 18:24:02 +0100, Johan Hovold wrote:
> > This reverts commit 1a48dd7b9ac809d1bd0fd2fef509abba83433846.
> >
> > A recent change enabling OTG mode on the Lenovo ThinkPad T14s USB-C
> > ports can break SuperSpeed device hotplugging. The host controller is
> > enumerated, but the device is not:
> >
> > xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
> > xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 3
> > xhci-hcd xhci-hcd.5.auto: hcc params 0x0110ffc5 hci version 0x110 quirks 0x000080a000000810
> > xhci-hcd xhci-hcd.5.auto: irq 247, io mem 0x0a800000
> > xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
> > xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 4
> > xhci-hcd xhci-hcd.5.auto: Host supports USB 3.1 Enhanced SuperSpeed
> > hub 3-0:1.0: USB hub found
> > hub 3-0:1.0: 1 port detected
> > hub 4-0:1.0: USB hub found
> > hub 4-0:1.0: 1 port detected
> >
> > [...]
>
> Applied, thanks!
>
> [1/1] Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports"
> commit: 1fb5cf0d165afc3be76ec754d1b1013515c3896a
Oh, you appear to have picked v1 here.
We need to revert also the other two patches from that series to address
a suspend issue and to unbreak UCSI and DP support:
https://lore.kernel.org/lkml/20241210111444.26240-1-johan+linaro@kernel.org/
Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-17 17:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-06 17:24 [PATCH] Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports" Johan Hovold
2024-12-07 21:49 ` Abel Vesa
2024-12-17 16:38 ` Bjorn Andersson
2024-12-17 17:12 ` Johan Hovold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox