devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/11] ARM/arm64: dts: qcom: fix USB wakeup interrupt types
@ 2023-11-20 16:43 Johan Hovold
  2023-11-20 16:43 ` [PATCH 01/11] ARM: dts: qcom: sdx55: " Johan Hovold
                   ` (12 more replies)
  0 siblings, 13 replies; 23+ messages in thread
From: Johan Hovold @ 2023-11-20 16:43 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, cros-qcom-dts-watchers, linux-arm-msm, devicetree,
	linux-kernel, Johan Hovold

When testing a recent series that addresses resource leaks in the
Qualcomm dwc3 glue driver [1], I realised that probe deferral can break
wakeup from suspend due to how the wakeup interrupts are currently
requested.

The following series fixes this by no longer overriding the firmware
defined trigger types for the wakeup interrupts:

	https://lore.kernel.org/lkml/20231120161607.7405-1-johan+linaro@kernel.org/

It turns out a number Qualcomm devicetrees have also gotten the trigger
types wrong, something which this series addresses.

Specifically, the HS/SS PHY wakeup interrupts are level triggered while
the DP/DM HS PHY interrupts are edge triggered, and which edge to
trigger on depends both on the use-case and on whether a Low speed or
Full/High speed device is connected.

Fortunately, there should be no dependency between this series and USB
one as all devicetree use the correct trigger type for the HS/SS PHY
interrupts and the HS one has never been armed by Linux anyway. The
DP/DM interrupt trigger types are also updated on suspend currently.

The only exception may be sc7280 where a recent cleanup patch
inadvertently switched the SS and DP trigger types, but that one should
just be backported anyway.

Note that the binding example is updated in the USB driver series
mentioned above.

Johan


[1] https://lore.kernel.org/lkml/20231117173650.21161-1-johan+linaro@kernel.org/


Johan Hovold (11):
  ARM: dts: qcom: sdx55: fix USB wakeup interrupt types
  arm64: dts: qcom: sa8775p: fix USB wakeup interrupt types
  arm64: dts: qcom: sc7180: fix USB wakeup interrupt types
  arm64: dts: qcom: sc7280: fix usb_1 wakeup interrupt types
  arm64: dts: qcom: sc7280: fix usb_2 wakeup interrupt types
  arm64: dts: qcom: sc8180x: fix USB wakeup interrupt types
  arm64: dts: qcom: sdm670: fix USB wakeup interrupt types
  arm64: dts: qcom: sdm845: fix USB wakeup interrupt types
  arm64: dts: qcom: sm6375: fix USB wakeup interrupt types
  arm64: dts: qcom: sm8150: fix USB wakeup interrupt types
  arm64: dts: qcom: sm8550: fix USB wakeup interrupt types

 arch/arm/boot/dts/qcom/qcom-sdx55.dtsi |  4 ++--
 arch/arm64/boot/dts/qcom/sa8775p.dtsi  | 12 ++++++------
 arch/arm64/boot/dts/qcom/sc7180.dtsi   |  4 ++--
 arch/arm64/boot/dts/qcom/sc7280.dtsi   |  8 ++++----
 arch/arm64/boot/dts/qcom/sc8180x.dtsi  |  8 ++++----
 arch/arm64/boot/dts/qcom/sdm670.dtsi   |  4 ++--
 arch/arm64/boot/dts/qcom/sdm845.dtsi   |  8 ++++----
 arch/arm64/boot/dts/qcom/sm6375.dtsi   |  4 ++--
 arch/arm64/boot/dts/qcom/sm8150.dtsi   |  8 ++++----
 arch/arm64/boot/dts/qcom/sm8550.dtsi   |  4 ++--
 10 files changed, 32 insertions(+), 32 deletions(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2023-12-14  7:49 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-20 16:43 [PATCH 00/11] ARM/arm64: dts: qcom: fix USB wakeup interrupt types Johan Hovold
2023-11-20 16:43 ` [PATCH 01/11] ARM: dts: qcom: sdx55: " Johan Hovold
2023-11-20 16:43 ` [PATCH 02/11] arm64: dts: qcom: sa8775p: " Johan Hovold
2023-11-20 17:26   ` Andrew Halaney
2023-11-20 16:43 ` [PATCH 03/11] arm64: dts: qcom: sc7180: " Johan Hovold
2023-11-20 16:43 ` [PATCH 04/11] arm64: dts: qcom: sc7280: fix usb_1 " Johan Hovold
2023-11-20 17:58   ` Krzysztof Kozlowski
2023-11-20 16:43 ` [PATCH 05/11] arm64: dts: qcom: sc7280: fix usb_2 " Johan Hovold
2023-11-20 16:43 ` [PATCH 06/11] arm64: dts: qcom: sc8180x: fix USB " Johan Hovold
2023-11-20 16:43 ` [PATCH 07/11] arm64: dts: qcom: sdm670: " Johan Hovold
2023-11-21  2:01   ` Richard Acayan
2023-11-20 16:43 ` [PATCH 08/11] arm64: dts: qcom: sdm845: " Johan Hovold
2023-11-20 16:43 ` [PATCH 09/11] arm64: dts: qcom: sm6375: " Johan Hovold
2023-11-20 16:43 ` [PATCH 10/11] arm64: dts: qcom: sm8150: " Johan Hovold
2023-11-23  2:16   ` Jack Pham
2023-11-20 16:43 ` [PATCH 11/11] arm64: dts: qcom: sm8550: " Johan Hovold
2023-11-20 16:53   ` Abel Vesa
2023-12-08 14:55 ` (subset) [PATCH 00/11] ARM/arm64: dts: qcom: " Bjorn Andersson
2023-12-11 16:39 ` Johan Hovold
2023-12-12  9:30   ` Krishna Kurapati PSSNV
2023-12-13 17:38     ` Johan Hovold
2023-12-13 18:39     ` Konrad Dybcio
2023-12-14  7:49       ` Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).