arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB controllers
Subsystems (4)
PATCH 1/1 arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB controllers
The DWC3 controllers on Glymur are paired with the M31 eUSB2 PHY. According to HPG, host-mode USB2 L2/L1 resume with this PHY, GUCTL1[10] (RESUME_OPMODE_HS_HOST) must be set.
Without this bit setting, USB2 HS device cannot be reset after it is runtime resumed. For example, after:
echo on > /sys/bus/usb/devices/1-1/power/control
PORTSC.PR never clears (PORTSC = 0xe11) and the hub driver fails with "port_wait_reset: err = -16".
Set snps,resume-hs-terminations on all Glymur USB controllers. This makes dwc3 core set GUCTL1[10] and fixes the issue, tested on Glymur CRD.
--- arch/arm64/boot/dts/qcom/glymur.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/qcom/glymur.dtsi +5 -0
@@ -5544,6 +5544,7 @@ usb_0: usb@a600000 { tx-fifo-resize; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; + snps,resume-hs-terminations; usb-role-switch; wakeup-source;
@@ -5620,6 +5621,7 @@ usb_1: usb@a800000 { tx-fifo-resize; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; + snps,resume-hs-terminations; usb-role-switch; wakeup-source;
@@ -5696,6 +5698,7 @@ usb_2: usb@a000000 { tx-fifo-resize; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; + snps,resume-hs-terminations; usb-role-switch; wakeup-source;
@@ -5783,6 +5786,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, tx-fifo-resize; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; + snps,resume-hs-terminations; maximum-speed = "high-speed";
@@ -5858,6 +5862,7 @@ usb_mp: usb@a400000 { tx-fifo-resize; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; + snps,resume-hs-terminations; dr_mode = "host"; wakeup-source;
Signature · 1 line
2.43.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 12 lines
The DWC3 controllers on Glymur are paired with the M31 eUSB2 PHY. According to HPG, host-mode USB2 L2/L1 resume with this PHY, GUCTL1[10] (
RESUME_OPMODE_HS_HOST) must be set.Without this bit setting, USB2 HS device cannot be reset after it is runtime resumed. For example, after:
echo on >
/sys/bus/usb/devices/1-1/power/controlPORTSC.PR never clears (PORTSC =
0xe11) and the hub driver fails with "port_wait_reset: err = -16".
Quoted 6 lines
Set snps,resume-hs-terminations on all Glymur USB controllers. This makes dwc3 core set GUCTL1[10] and fixes the issue, tested on Glymur CRD.
Fixes 4eee57dd4df9 ("arm64: dts: qcom: glymur: Add USB related nodes")Assisted-by Claude:claude-opus-5-5Signed-off-by Peter Chen <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 3 lines · Peter Chen
The DWC3 controllers on Glymur are paired with the M31 eUSB2 PHY. According to HPG, host-mode USB2 L2/L1 resume with this PHY, GUCTL1[10] (
RESUME_OPMODE_HS_HOST) must be set.
$ rg -i m31-eusb2 arch -l arch/arm64/boot/dts/qcom/glymur.dtsi arch/arm64/boot/dts/qcom/kaanapali.dtsi arch/arm64/boot/dts/qcom/hawi.dtsi arch/arm64/boot/dts/qcom/sm8750.dtsi
Can you send a fixup for all of these?
Konrad
Quoted 11 lines · Konrad Dybcio
Quoted 3 lines · Peter Chen
The DWC3 controllers on Glymur are paired with the M31 eUSB2 PHY. According to HPG, host-mode USB2 L2/L1 resume with this PHY, GUCTL1[10] (
RESUME_OPMODE_HS_HOST) must be set.$ rg -i m31-eusb2 arch -l arch/arm64/boot/dts/qcom/glymur.dtsi arch/arm64/boot/dts/qcom/kaanapali.dtsi arch/arm64/boot/dts/qcom/hawi.dtsi arch/arm64/boot/dts/qcom/sm8750.dtsi
Quoted 3 lines
Can you send a fixup for all of these?
Reviewed-by Konrad Dybcio <[email protected]>
Sure, but I only have Glymur CRD, can't test this change on all hardware, is it okay?
Signature · 2 lines
Thanks, Peter Chen
Quoted 12 lines · Peter Chen
Quoted 11 lines · Konrad Dybcio
Quoted 3 lines · Peter Chen
The DWC3 controllers on Glymur are paired with the M31 eUSB2 PHY. According to HPG, host-mode USB2 L2/L1 resume with this PHY, GUCTL1[10] (
RESUME_OPMODE_HS_HOST) must be set.$ rg -i m31-eusb2 arch -l arch/arm64/boot/dts/qcom/glymur.dtsi arch/arm64/boot/dts/qcom/kaanapali.dtsi arch/arm64/boot/dts/qcom/hawi.dtsi arch/arm64/boot/dts/qcom/sm8750.dtsi
Quoted 6 lines
Quoted 3 lines
Can you send a fixup for all of these?
Reviewed-by Konrad Dybcio <[email protected]>Sure, but I only have Glymur CRD, can't test this change on all hardware, is it okay?
The hardware programming guide says this is a necessity due to the hw specifics. This is enough evidence - you can then ask some of our colleagues who recently submitted support for these SoCs to test it out.
Konrad
Re: (subset) [PATCH 1/1] arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB controllers
In reply to Peter ChenQuoted 8 lines · Peter Chen
The DWC3 controllers on Glymur are paired with the M31 eUSB2 PHY. According to HPG, host-mode USB2 L2/L1 resume with this PHY, GUCTL1[10] (
RESUME_OPMODE_HS_HOST) must be set.Without this bit setting, USB2 HS device cannot be reset after it is runtime resumed. For example, after:
[...]
Applied, thanks!
[1/1] arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB controllers
commit: 45cf7caf54392c64d1046b88cc9ffcfdf52af968
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>