arm64: dts: qcom: Set snps,resume-hs-terminations for M31 eUSB2 PHY platforms
Subsystems (4)
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
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.
--- 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 reviewRe: [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/controlPORTSC.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.
Reviewed-by Konrad Dybcio <[email protected]>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.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: [PATCH v2 1/4] arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB controllers
In reply to Peter ChenQuoted 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/controlPORTSC.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.
Reviewed-by Konrad Dybcio <[email protected]>Fixes 4eee57dd4df9 ("arm64: dts: qcom: glymur: Add USB related nodes")Assisted-by Claude:claude-opus-5-5Signed-off-by Peter Chen <[email protected]>
Re: [PATCH v2 1/4] arm64: dts: qcom: glymur: Set snps,resume-hs-terminations for USB controllers
In reply to Peter ChenQuoted 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/controlPORTSC.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.
Reviewed-by Konrad Dybcio <[email protected]>Fixes 4eee57dd4df9 ("arm64: dts: qcom: glymur: Add USB related nodes")Assisted-by Claude:claude-opus-5-5Signed-off-by Peter Chen <[email protected]>
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@@ -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;
PATCH v2 2/4 arm64: dts: qcom: sm8750: Set snps,resume-hs-terminations for USB controller
In reply to Peter ChenThe 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].
--- arch/arm64/boot/dts/qcom/sm8750.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sm8750.dtsi +1 -0
@@ -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
[email protected]
AI reviewRe: [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-5Signed-off-by Peter Chen <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH v2 2/4] arm64: dts: qcom: sm8750: Set snps,resume-hs-terminations for USB controller
In reply to Peter ChenQuoted 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-5Signed-off-by Peter Chen <[email protected]>---
Konrad
Re: [PATCH v2 2/4] arm64: dts: qcom: sm8750: Set snps,resume-hs-terminations for USB controller
In reply to Peter ChenQuoted 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-5Signed-off-by Peter Chen <[email protected]>
PATCH v2 3/4 arm64: dts: qcom: kaanapali: Set snps,resume-hs-terminations for USB controller
In reply to Peter ChenThe 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].
--- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/kaanapali.dtsi +1 -0
@@ -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
[email protected]
AI reviewRe: [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-5Signed-off-by Peter Chen <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
Re: [PATCH v2 3/4] arm64: dts: qcom: kaanapali: Set snps,resume-hs-terminations for USB controller
In reply to Peter ChenQuoted 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-5Signed-off-by Peter Chen <[email protected]>---
Konrad
Re: [PATCH v2 3/4] arm64: dts: qcom: kaanapali: Set snps,resume-hs-terminations for USB controller
In reply to Peter ChenQuoted 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-5Signed-off-by Peter Chen <[email protected]>
PATCH v2 4/4 arm64: dts: qcom: hawi: Set snps,resume-hs-terminations for USB controller
In reply to Peter ChenThe 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].
--- arch/arm64/boot/dts/qcom/hawi.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/hawi.dtsi +1 -0
@@ -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
[email protected]
AI reviewRe: [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-5Signed-off-by Peter Chen <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=4
Re: [PATCH v2 4/4] arm64: dts: qcom: hawi: Set snps,resume-hs-terminations for USB controller
In reply to Peter ChenQuoted 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-5Signed-off-by Peter Chen <[email protected]>---
Konrad
Re: [PATCH v2 4/4] arm64: dts: qcom: hawi: Set snps,resume-hs-terminations for USB controller
In reply to Peter ChenQuoted 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-5Signed-off-by Peter Chen <[email protected]>
Re: (subset) [PATCH v2 0/4] arm64: dts: qcom: Set snps,resume-hs-terminations for M31 eUSB2 PHY platforms
In reply to Peter ChenQuoted 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]>