android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jos Wang e0359c66c1 usb: typec: displayport: Receive DP Status Update NAK request exit dp altmode
[ Upstream commit b4b38ffb38c91afd4dc387608db26f6fc34ed40b ]

Although some Type-C DRD devices that do not support the DP Sink
function (such as Huawei Mate 40Pro), the Source Port initiates
Enter Mode CMD, but the device responds to Enter Mode ACK, the
Source port then initiates DP Status Update CMD, and the device
responds to DP Status Update NAK.

As PD2.0 spec ("6.4.4.3.4 Enter Mode Command"),A DR_Swap Message
Shall Not be sent during Modal Operation between the Port Partners.
At this time, the source port initiates DR_Swap message through the
"echo device > /sys/class/typec/port0/data_role" command to switch
the data role from host to device. The device will initiate a Hard
Reset for recovery, resulting in the failure of data role swap.

Therefore, when DP Status Update NAK is received, Exit Mode CMD is
initiated to exit the currently entered DP altmode.

Signed-off-by: Jos Wang <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2025-07-17 18:24:50 +02:00
..
atm usb: atm: cxacru: fix a flaw in existing endpoint checks 2025-03-13 12:43:31 +01:00
c67x00
cdns3 usb: cdns3: Fix deadlock when using NCM gadget 2025-05-02 07:39:27 +02:00
chipidea usb: chipidea: ci_hdrc_imx: implement usb_phy_init() error handling 2025-06-04 14:32:26 +02:00
class usb: cdc-wdm: avoid setting WDM_READ for ZLP-s 2025-07-17 18:24:50 +02:00
common usb: common: usb-conn-gpio: Prevent bailing out if initial role is none 2023-08-16 18:19:23 +02:00
core usb: Add checks for snprintf() calls in usb_alloc_dev() 2025-07-17 18:24:50 +02:00
dwc2 usb: dwc2: gadget: remove of_node reference upon udc_stop 2025-03-13 12:43:14 +01:00
dwc3 usb: dwc3: gadget: check that event count does not exceed event buffer length 2025-05-02 07:39:27 +02:00
early
gadget usb: potential integer overflow in usbg_make_tpg() 2025-07-17 18:24:50 +02:00
host usb: uhci-platform: Make the clock really optional 2025-06-04 14:32:27 +02:00
image
isp1760
misc USB: chaoskey: Fix possible deadlock chaoskey_list_lock 2024-12-14 19:44:34 +01:00
mon usb: mon: Fix atomicity violation in mon_bin_vma_fault 2024-01-25 14:34:30 -08:00
mtu3
musb usb: musb: sunxi: Fix accessing an released usb phy 2024-11-17 14:58:52 +01:00
phy usb: phy: Fix API devm_usb_put_phy() can not release the phy 2024-11-08 16:20:53 +01:00
renesas_usbhs usb: renesas_usbhs: Reorder clock handling and power management in probe 2025-06-27 11:02:48 +01:00
roles usb: roles: set switch registered flag early on 2025-03-13 12:43:14 +01:00
serial USB: serial: simple: add OWON HDS200 series oscilloscope support 2025-05-02 07:39:27 +02:00
storage usb: storage: Ignore UAS driver for SanDisk 3.2 Gen2 storage device 2025-06-27 11:02:44 +01:00
typec usb: typec: displayport: Receive DP Status Update NAK request exit dp altmode 2025-07-17 18:24:50 +02:00
usbip usbip: Don't submit special requests twice 2024-09-12 11:03:50 +02:00
Kconfig
Makefile
usb-skeleton.c