linux/drivers/usb
Amit Sunil Dhamne f2865c6300 usb: typec: tcpm: fix state transition for SNK_WAIT_CAPABILITIES state in run_state_machine()
A subtle error got introduced while manually fixing merge conflict in
tcpm.c for commit 85c4efbe60 ("Merge v6.12-rc6 into usb-next"). As a
result of this error, the next state is unconditionally set to
SNK_WAIT_CAPABILITIES_TIMEOUT while handling SNK_WAIT_CAPABILITIES state
in run_state_machine(...).

Fix this by setting new state of TCPM state machine to `upcoming_state`
(that is set to different values based on conditions).

Cc: stable@vger.kernel.org
Fixes: 85c4efbe60 ("Merge v6.12-rc6 into usb-next")
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
Reviewed-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250310-fix-snk-wait-timeout-v6-14-rc6-v1-1-5db14475798f@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-14 09:15:20 +01:00
..
atm usb: atm: cxacru: fix a flaw in existing endpoint checks 2025-02-19 15:18:16 +01: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 DELAY_INIT and NO_LPM for Prolific Mass Storage Card Reader 2025-03-06 16:50:24 +01:00
dwc2 usb: dwc2: gadget: remove of_node reference upon udc_stop 2025-02-03 16:42:05 +01:00
dwc3 usb: dwc3: Set SUSPENDENABLE soon after phy init 2025-03-04 06:26:58 +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: Check bmAttributes only if configuration is valid 2025-03-03 10:12:14 +01:00
host usb: xhci: Fix host controllers "dying" after suspend and resume 2025-03-04 15:02: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: renesas_usbhs: Flush the notify_hotplug_work 2025-03-03 10:20:14 +01:00
roles usb: roles: set switch registered flag early on 2025-02-14 09:26:25 +01:00
serial USB: serial: ftdi_sio: add support for Altera USB Blaster 3 2025-03-12 17:51:16 +01:00
storage USB / Thunderbolt driver updates for 6.14-rc1 2025-01-27 16:29:16 -08:00
typec usb: typec: tcpm: fix state transition for SNK_WAIT_CAPABILITIES state in run_state_machine() 2025-03-14 09:15:20 +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