Skip to contentSkip to conversation

arm64: dts: qcom: Set snps,resume-hs-terminations for M31 eUSB2 PHY platforms

PATCH Applied Peter Chen 6 participants 18 messages Oct 19 – Nov 8

Subsystems (4)
lore
Share & tools
lore

Peter Chen

author
#0 lore raw

v2 cover arm64: dts: qcom: Set snps,resume-hs-terminations for M31 eUSB2 PHY platforms

The DWC3 controllers on Qualcomm SoCs paired with the M31 eUSB2 PHY need GUCTL1[10] (RESUME_OPMODE_HS_HOST) set for host-mode USB2 L2/L1 resume, as required by the HPG. Without it, a USB2 HS device cannot be reset after it is runtime resumed: PORTSC.PR never clears (PORTSC = 0xe11) and the hub driver fails with "port_wait_reset: err = -16".

Set snps,resume-hs-terminations, which makes dwc3 core set GUCTL1[10], on all platforms using the M31 eUSB2 PHY: Glymur, SM8750, Kaanapali and Hawi.

Changes in v2:
- Apply the same fix to SM8750, Kaanapali and Hawi, which also use the M31 eUSB2 PHY (Konrad)
- Collect Reviewed-by tag from Konrad for the Glymur patch

v1: https://lore.kernel.org/all/[email protected]/

Peter Chen (4):
arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB
controllers
arm64: dts: qcom: sm8750: Set snps,resume-hs-terminations for USB
controller
arm64: dts: qcom: kaanapali: Set snps,resume-hs-terminations for USB
controller
arm64: dts: qcom: hawi: Set snps,resume-hs-terminations for USB
controller

 arch/arm64/boot/dts/qcom/glymur.dtsi    | 5 +++++
 arch/arm64/boot/dts/qcom/hawi.dtsi      | 1 +
 arch/arm64/boot/dts/qcom/kaanapali.dtsi | 1 +
 arch/arm64/boot/dts/qcom/sm8750.dtsi    | 1 +
 4 files changed, 8 insertions(+)
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH v2 1/4 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.

Fixes 4eee57dd4df9 ("arm64: dts: qcom: glymur: Add USB related nodes")
Assisted-by Claude:claude-opus-5-5
---
 arch/arm64/boot/dts/qcom/glymur.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/qcom/glymur.dtsi +5 -0
index e269ae6e10ea..023a8448449c 100644
@@ -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
#2 lore raw

Re: [PATCH v2 1/4] arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB controllers

Sashiko has reviewed this patch and found no issues.
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/control

PORTSC.PR never clears (PORTSC = 0xe11) and the hub driver fails with "port_wait_reset: err = -16".

Quoted 7 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-5

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Reviewed-by on v2 1/4
#3 lore raw

Re: [PATCH v2 1/4] arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB controllers

In reply to Peter Chen
Quoted 12 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:

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".

Quoted 7 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-5
Tested-by on v2 1/4
#4 lore raw

Re: [PATCH v2 1/4] arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB controllers

In reply to Peter Chen
Quoted 12 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:

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".

Quoted 7 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-5

This also fixes one more issue in Glymur wherein the HS Pendrive disconnects after exiting pm suspend.

Regards,
Krishna,

Quoted 48 lines
---
  arch/arm64/boot/dts/qcom/glymur.dtsi | 5 +++++
  1 file changed, 5 insertions(+)
arch/arm64/boot/dts/qcom/glymur.dtsi +5 -0
index e269ae6e10ea..023a8448449c 100644
@@ -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;
author
#5 lore raw

PATCH v2 2/4 arm64: dts: qcom: sm8750: Set snps,resume-hs-terminations for USB controller

In reply to Peter Chen

The DWC3 controller on SM8750 is 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.

Set snps,resume-hs-terminations on the SM8750 USB controller. This makes dwc3 core set GUCTL1[10].

Fixes 7a5bb9f60527 ("arm64: dts: qcom: sm8750: Add USB support to SM8750 SoCs")
Assisted-by Claude:claude-opus-5-5
---
 arch/arm64/boot/dts/qcom/sm8750.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sm8750.dtsi +1 -0
index 521b1d224c28..21ba6992eaa6 100644
@@ -3334,6 +3334,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
 			snps,usb3_lpm_capable;
 			snps,usb2-lpm-disable;
 			snps,has-lpm-erratum;
+			snps,resume-hs-terminations;
 			tx-fifo-resize;
 
 			dma-coherent;
Signature · 1 line
2.43.0
#6 lore raw

Re: [PATCH v2 2/4] arm64: dts: qcom: sm8750: Set snps,resume-hs-terminations for USB controller

Sashiko has reviewed this patch and found no issues.
Quoted 10 lines

The DWC3 controller on SM8750 is 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.

Set snps,resume-hs-terminations on the SM8750 USB controller. This makes dwc3 core set GUCTL1[10].

Fixes 7a5bb9f60527 ("arm64: dts: qcom: sm8750: Add USB support to SM8750 SoCs")
Assisted-by Claude:claude-opus-5-5

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Reviewed-by on v2 2/4
#7 lore raw

Re: [PATCH v2 2/4] arm64: dts: qcom: sm8750: Set snps,resume-hs-terminations for USB controller

In reply to Peter Chen
Quoted 11 lines · Peter Chen

The DWC3 controller on SM8750 is 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.

Set snps,resume-hs-terminations on the SM8750 USB controller. This makes dwc3 core set GUCTL1[10].

Fixes 7a5bb9f60527 ("arm64: dts: qcom: sm8750: Add USB support to SM8750 SoCs")
Assisted-by Claude:claude-opus-5-5

---

Konrad

Reviewed-by on v2 2/4
#8 lore raw

Re: [PATCH v2 2/4] arm64: dts: qcom: sm8750: Set snps,resume-hs-terminations for USB controller

In reply to Peter Chen
Quoted 10 lines · Peter Chen

The DWC3 controller on SM8750 is 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.

Set snps,resume-hs-terminations on the SM8750 USB controller. This makes dwc3 core set GUCTL1[10].

Fixes 7a5bb9f60527 ("arm64: dts: qcom: sm8750: Add USB support to SM8750 SoCs")
Assisted-by Claude:claude-opus-5-5
author
#9 lore raw

PATCH v2 3/4 arm64: dts: qcom: kaanapali: Set snps,resume-hs-terminations for USB controller

In reply to Peter Chen

The DWC3 controller on Kaanapali is 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.

Set snps,resume-hs-terminations on the Kaanapali USB controller. This makes dwc3 core set GUCTL1[10].

Fixes 3d395de80a46 ("arm64: dts: qcom: kaanapali: Add USB support for Kaanapali SoC")
Assisted-by Claude:claude-opus-5-5
---
 arch/arm64/boot/dts/qcom/kaanapali.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/kaanapali.dtsi +1 -0
index bd51cd3b70c7..60c6c2c09bcf 100644
@@ -4347,6 +4347,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
 			snps,usb3_lpm_capable;
 			snps,usb2-lpm-disable;
 			snps,has-lpm-erratum;
+			snps,resume-hs-terminations;
 			tx-fifo-resize;
 			dma-coherent;
 
Signature · 1 line
2.43.0
#10 lore raw

Re: [PATCH v2 3/4] arm64: dts: qcom: kaanapali: Set snps,resume-hs-terminations for USB controller

Sashiko has reviewed this patch and found no issues.
Quoted 10 lines

The DWC3 controller on Kaanapali is 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.

Set snps,resume-hs-terminations on the Kaanapali USB controller. This makes dwc3 core set GUCTL1[10].

Fixes 3d395de80a46 ("arm64: dts: qcom: kaanapali: Add USB support for Kaanapali SoC")
Assisted-by Claude:claude-opus-5-5

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
Reviewed-by on v2 3/4
#11 lore raw

Re: [PATCH v2 3/4] arm64: dts: qcom: kaanapali: Set snps,resume-hs-terminations for USB controller

In reply to Peter Chen
Quoted 11 lines · Peter Chen

The DWC3 controller on Kaanapali is 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.

Set snps,resume-hs-terminations on the Kaanapali USB controller. This makes dwc3 core set GUCTL1[10].

Fixes 3d395de80a46 ("arm64: dts: qcom: kaanapali: Add USB support for Kaanapali SoC")
Assisted-by Claude:claude-opus-5-5

---

Konrad

Reviewed-by on v2 3/4
#12 lore raw

Re: [PATCH v2 3/4] arm64: dts: qcom: kaanapali: Set snps,resume-hs-terminations for USB controller

In reply to Peter Chen
Quoted 10 lines · Peter Chen

The DWC3 controller on Kaanapali is 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.

Set snps,resume-hs-terminations on the Kaanapali USB controller. This makes dwc3 core set GUCTL1[10].

Fixes 3d395de80a46 ("arm64: dts: qcom: kaanapali: Add USB support for Kaanapali SoC")
Assisted-by Claude:claude-opus-5-5
author
#13 lore raw

PATCH v2 4/4 arm64: dts: qcom: hawi: Set snps,resume-hs-terminations for USB controller

In reply to Peter Chen

The DWC3 controller on Hawi is 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.

Set snps,resume-hs-terminations on the Hawi USB controller. This makes dwc3 core set GUCTL1[10].

Assisted-by Claude:claude-opus-5-5
---
 arch/arm64/boot/dts/qcom/hawi.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/hawi.dtsi +1 -0
index c7ae8133b9cd..cdd660ef2dcd 100644
@@ -3945,6 +3945,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
 			snps,usb3_lpm_capable;
 			snps,usb2-lpm-disable;
 			snps,has-lpm-erratum;
+			snps,resume-hs-terminations;
 			tx-fifo-resize;
 			dma-coherent;
 
Signature · 1 line
2.43.0
#14 lore raw

Re: [PATCH v2 4/4] arm64: dts: qcom: hawi: Set snps,resume-hs-terminations for USB controller

Sashiko has reviewed this patch and found no issues.
Quoted 9 lines

The DWC3 controller on Hawi is 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.

Set snps,resume-hs-terminations on the Hawi USB controller. This makes dwc3 core set GUCTL1[10].

Assisted-by Claude:claude-opus-5-5

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=4
Reviewed-by on v2 4/4
#15 lore raw

Re: [PATCH v2 4/4] arm64: dts: qcom: hawi: Set snps,resume-hs-terminations for USB controller

In reply to Peter Chen
Quoted 10 lines · Peter Chen

The DWC3 controller on Hawi is 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.

Set snps,resume-hs-terminations on the Hawi USB controller. This makes dwc3 core set GUCTL1[10].

Assisted-by Claude:claude-opus-5-5

---

Konrad

Reviewed-by on v2 4/4
#16 lore raw

Re: [PATCH v2 4/4] arm64: dts: qcom: hawi: Set snps,resume-hs-terminations for USB controller

In reply to Peter Chen
Quoted 9 lines · Peter Chen

The DWC3 controller on Hawi is 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.

Set snps,resume-hs-terminations on the Hawi USB controller. This makes dwc3 core set GUCTL1[10].

Assisted-by Claude:claude-opus-5-5
maintainer Applied
#17 lore raw

Re: (subset) [PATCH v2 0/4] arm64: dts: qcom: Set snps,resume-hs-terminations for M31 eUSB2 PHY platforms

In reply to Peter Chen
Quoted 8 lines · Peter Chen

The DWC3 controllers on Qualcomm SoCs paired with the M31 eUSB2 PHY need GUCTL1[10] (RESUME_OPMODE_HS_HOST) set for host-mode USB2 L2/L1 resume, as required by the HPG. Without it, a USB2 HS device cannot be reset after it is runtime resumed: PORTSC.PR never clears (PORTSC = 0xe11) and the hub driver fails with "port_wait_reset: err = -16".

[...]

Applied, thanks!

[4/4] arm64: dts: qcom: hawi: Set snps,resume-hs-terminations for USB controller

      commit: 3c7371a907cff175fe316fce61e875e3f8db0897

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>