public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support to ignore single SE0 glitches
@ 2024-10-17 11:40 Uttkarsh Aggarwal
  2024-10-17 11:40 ` [PATCH v2 1/2] dt-bindings: usb: snps,dwc3: Add snps,filter-se0-fsls-eop quirk Uttkarsh Aggarwal
  2024-10-17 11:40 ` [PATCH v2 2/2] usb: dwc3: core: Add support to ignore single SE0 glitches Uttkarsh Aggarwal
  0 siblings, 2 replies; 12+ messages in thread
From: Uttkarsh Aggarwal @ 2024-10-17 11:40 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Conor Dooley,
	Greg Kroah-Hartman, Felipe Balbi, Thinh Nguyen
  Cc: linux-usb, linux-kernel, devicetree, quic_ppratap, quic_jackp,
	Uttkarsh Aggarwal

Currently in few of Qualcomm chips USB (Low speed) mouse not
detected showing following errors:

  usb 1-1: Device not responding to setup address.
  usb 1-1: device not accepting address 2, error -71
  usb 1-1: new low-speed USB device number 3 using xhci-hcd
  usb 1-1: Device not responding to setup address.
  usb 1-1: Device not responding to setup address.
  usb 1-1: device not accepting address 3, error -71
  usb usb1-port1: attempt power cycle

Based on the Logic analyzer waveforms, It has been identified that there
is skew of about 8nS b/w DP & DM linestate signals (o/p of PHY & i/p to
controller) at the UTMI interface, Due to this controller is seeing SE0
glitch condition, this is causing controller to pre-maturely assume that
PHY has sent all the data & is initiating next packet much early, though
in reality PHY is still busy sending previous packets.

Enabling the GUCTL1.FILTER_SE0_FSLS_EOP bit29 allows the controller to
ignore single SE0 glitches on the linestate during transmission. Only two
or more SE0 signals are recognized as a valid EOP.

When this feature is activated, SE0 signals on the linestate are validated
over two consecutive UTMI/ULPI clock edges for EOP detection.

Device mode (FS): If GUCTL1.FILTER_SE0_FSLS_EOP is set, then for device LPM
handshake, the controller ignores single SE0 glitch on the linestate during
transmit. Only two or more SE0 is considered as a valid EOP on FS port.

Host mode (FS/LS): If GUCTL1.FILTER_SE0_FSLS_EOP is set, then the controller
ignores single SE0 glitch on the linestate during transmit.

DT patch will be sent separately.

Changes in v2:
Included bindings update for the quirk.
Updated commit text for core patch.

Link to v1:
https://lore.kernel.org/all/20240823055642.27638-1-quic_uaggarwa@quicinc.com/

Uttkarsh Aggarwal (2):
  dt-bindings: usb: snps,dwc3: Add snps,filter-se0-fsls-eop quirk
  usb: dwc3: core: Add support to ignore single SE0 glitches

 .../devicetree/bindings/usb/snps,dwc3.yaml          |  6 ++++++
 drivers/usb/dwc3/core.c                             | 13 +++++++++++++
 drivers/usb/dwc3/core.h                             |  4 ++++
 3 files changed, 23 insertions(+)

-- 
2.17.1


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

end of thread, other threads:[~2024-12-10 11:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-17 11:40 [PATCH v2 0/2] Add support to ignore single SE0 glitches Uttkarsh Aggarwal
2024-10-17 11:40 ` [PATCH v2 1/2] dt-bindings: usb: snps,dwc3: Add snps,filter-se0-fsls-eop quirk Uttkarsh Aggarwal
2024-10-18  6:27   ` Krzysztof Kozlowski
2024-11-07  6:17     ` Krishna Kurapati
2024-11-07  9:55       ` Krzysztof Kozlowski
2024-11-20  9:23         ` Krishna Kurapati
2024-12-10 10:12           ` Krishna Kurapati
2024-12-10 11:47             ` Krzysztof Kozlowski
2024-10-17 11:40 ` [PATCH v2 2/2] usb: dwc3: core: Add support to ignore single SE0 glitches Uttkarsh Aggarwal
2024-10-18 10:59   ` AKASH KUMAR
2024-10-18 11:02   ` AKASH KUMAR
2024-11-07  8:35     ` UTTKARSH AGGARWAL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox