linux-yocto/drivers/usb
RD Babiera a7c6de9f84 usb: typec: tcpm: apply vbus before data bringup in tcpm_src_attach
commit bec15191d5 upstream.

This patch fixes Type-C compliance test TD 4.7.6 - Try.SNK DRP Connect
SNKAS.

tVbusON has a limit of 275ms when entering SRC_ATTACHED. Compliance
testers can interpret the TryWait.Src to Attached.Src transition after
Try.Snk as being in Attached.Src the entire time, so ~170ms is lost
to the debounce timer.

Setting the data role can be a costly operation in host mode, and when
completed after 100ms can cause Type-C compliance test check TD 4.7.5.V.4
to fail.

Turn VBUS on before tcpm_set_roles to meet timing requirement.

Fixes: f0690a25a1 ("staging: typec: USB Type-C Port Manager (tcpm)")
Cc: stable <stable@kernel.org>
Signed-off-by: RD Babiera <rdbabiera@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/20250618230606.3272497-2-rdbabiera@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-01 09:48:44 +01:00
..
atm usb: atm: cxacru: fix a flaw in existing endpoint checks 2025-03-13 13:02:11 +01:00
c67x00
cdns3 usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-07-10 16:05:11 +02:00
chipidea usb: chipidea: udc: disconnect/reconnect from host when do suspend/resume 2025-07-10 16:05:11 +02:00
class usb: cdc-wdm: avoid setting WDM_READ for ZLP-s 2025-07-06 11:01:35 +02:00
common usb: common: usb-conn-gpio: use a unique name for usb connector device 2025-07-06 11:01:35 +02:00
core usb: hub: Don't try to recover devices lost during warm reset. 2025-07-24 08:56:36 +02:00
dwc2 usb: dwc2: gadget: Fix enter to hibernation for UTMI+ PHY 2025-07-24 08:56:20 +02:00
dwc3 usb: dwc3: qcom: Don't leave BCR asserted 2025-07-24 08:56:36 +02:00
early
fotg210
gadget usb: gadget: configfs: Fix OOB read on empty string write 2025-07-24 08:56:20 +02:00
host xhci: Disable stream for xHC controller with XHCI_BROKEN_STREAMS 2025-07-10 16:05:10 +02:00
image
isp1760
misc usb: misc: onboard_usb_dev: fix build warning for CONFIG_USB_ONBOARD_DEV_USB5744=n 2025-06-19 15:32:37 +02:00
mon
mtu3
musb usb: musb: fix gadget state on disconnect 2025-07-24 08:56:20 +02:00
phy usb: phy: generic: Use proper helper for property detection 2025-03-22 12:54:16 -07:00
renesas_usbhs usb: renesas_usbhs: Reorder clock handling and power management in probe 2025-06-19 15:32:11 +02:00
roles
serial USB: serial: ftdi_sio: add support for NDI EMGUIDE GEMINI 2025-07-24 08:56:20 +02:00
storage usb: storage: Ignore UAS driver for SanDisk 3.2 Gen2 storage device 2025-06-10 07:12:59 -04:00
typec usb: typec: tcpm: apply vbus before data bringup in tcpm_src_attach 2025-08-01 09:48:44 +01:00
usbip
Kconfig
Makefile
usb-skeleton.c