1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/usb
Jos Wang 659f5d55fe usb: typec: tcpm: PSSourceOffTimer timeout in PR_Swap enters ERROR_RECOVERY
As PD2.0 spec ("6.5.6.2 PSSourceOffTimer"),the PSSourceOffTimer is
used by the Policy Engine in Dual-Role Power device that is currently
acting as a Sink to timeout on a PS_RDY Message during a Power Role
Swap sequence. This condition leads to a Hard Reset for USB Type-A and
Type-B Plugs and Error Recovery for Type-C plugs and return to USB
Default Operation.

Therefore, after PSSourceOffTimer timeout, the tcpm state machine should
switch from PR_SWAP_SNK_SRC_SINK_OFF to ERROR_RECOVERY. This can also
solve the test items in the USB power delivery compliance test:
TEST.PD.PROT.SNK.12 PR_Swap – PSSourceOffTimer Timeout

[1] https://usb.org/document-library/usb-power-delivery-compliance-test-specification-0/USB_PD3_CTS_Q4_2025_OR.zip

Fixes: f0690a25a1 ("staging: typec: USB Type-C Port Manager (tcpm)")
Cc: stable <stable@kernel.org>
Signed-off-by: Jos Wang <joswang@lenovo.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Amit Sunil Dhamne <amitsd@google.com>
Link: https://lore.kernel.org/r/20250213134921.3798-1-joswang1221@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-14 09:26:44 +01:00
..
atm Merge 6.12-rc3 into usb-next 2024-10-14 08:03:44 +02:00
c67x00 usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
cdns3 USB: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
chipidea USB: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
class USB: cdc-acm: Fill in Renesas R-Car D3 USB Download mode quirk 2025-02-14 09:22:36 +01:00
common USB: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
core USB: quirks: add USB_QUIRK_NO_LPM quirk for Teclast dist 2025-02-14 09:25:41 +01:00
dwc2 usb: dwc2: gadget: remove of_node reference upon udc_stop 2025-02-03 16:42:05 +01:00
dwc3 usb: dwc3: Fix timeout issue during controller enter/exit from halt state 2025-02-14 09:23:23 +01:00
early usb: early: xhci-dbc: Use memcpy_and_pad() 2023-01-31 10:40:54 +01:00
fotg210 USB: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
gadget usb: gadget: uvc: Fix unstarted kthread worker 2025-02-14 09:26:00 +01:00
host usb: xhci: Restore xhci_pci support for Renesas HCs 2025-02-14 09:21:24 +01:00
image scsi: Rename .slave_alloc() and .slave_destroy() 2024-12-04 15:34:28 -05:00
isp1760 Kbuild updates for v6.13 2024-11-30 13:41:50 -08:00
misc usb: misc: onboard_usb_dev: skip suspend/resume sequence for USB5744 SMBus support 2024-12-04 16:27:04 +01:00
mon drivers/usb/mon: refactor min with min_t 2024-11-13 15:09:51 +01:00
mtu3 Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
musb USB: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
phy usb: phy: generic: Use proper helper for property detection 2025-02-03 16:39:56 +01:00
renesas_usbhs usb: Use (of|device)_property_present() for non-boolean properties 2024-11-05 13:29:26 +01:00
roles usb: roles: set switch registered flag early on 2025-02-14 09:26:25 +01:00
serial USB: serial: option: drop MeiG Smart defines 2025-02-11 17:08:58 +01:00
storage USB / Thunderbolt driver updates for 6.14-rc1 2025-01-27 16:29:16 -08:00
typec usb: typec: tcpm: PSSourceOffTimer timeout in PR_Swap enters ERROR_RECOVERY 2025-02-14 09:26:44 +01:00
usbip usbip: Correct format specifier for seqnum from %d to %u 2025-01-17 12:38:01 +01:00
Kconfig usb: pci-quirks: handle HAS_IOPORT dependency for AMD quirk 2023-10-02 16:19:12 +02:00
Makefile USB: xen-hcd: Traverse host/ when CONFIG_USB_XEN_HCD is selected 2024-06-04 15:33:38 +02:00
usb-skeleton.c usb: add usb_set_intfdata() documentation 2022-11-29 08:56:09 +01:00