WSL2-Linux-Kernel/drivers/usb
Prashant Malani 239e927eb2 usb: typec: altmodes/displayport: Fix probe pin assign check
commit 54e5c00a4e upstream.

While checking Pin Assignments of the port and partner during probe, we
don't take into account whether the peripheral is a plug or receptacle.

This manifests itself in a mode entry failure on certain docks and
dongles with captive cables. For instance, the Startech.com Type-C to DP
dongle (Model #CDP2DP) advertises its DP VDO as 0x405. This would fail
the Pin Assignment compatibility check, despite it supporting
Pin Assignment C as a UFP.

Update the check to use the correct DP Pin Assign macros that
take the peripheral's receptacle bit into account.

Fixes: c1e5c2f0cb ("usb: typec: altmodes/displayport: correct pin assignment for UFP receptacles")
Cc: stable@vger.kernel.org
Reported-by: Diana Zigterman <dzigterman@chromium.org>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20230208205318.131385-1-pmalani@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-14 19:18:03 +01:00
..
atm
c67x00
cdns3 usb: cdns3: remove fetched trb from cache before dequeuing 2023-01-24 07:22:46 +01:00
chipidea usb: chipidea: fix deadlock in ci_otg_del_timer 2022-11-26 09:24:45 +01:00
class USB: cdc-acm: Add Icom PMR F3400 support (0c26:0020) 2022-09-08 12:28:06 +02:00
common Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout" 2023-01-18 11:48:58 +01:00
core usb: core: add quirk for Alcor Link AK9563 smartcard reader 2023-02-14 19:18:03 +01:00
dwc2 usb: dwc2: fix wrong order of phy_power_on and phy_init 2022-09-08 12:28:06 +02:00
dwc3 usb: dwc3: qcom: enable vbus override when in OTG dr-mode 2023-02-09 11:26:40 +01:00
early Revert "usb: early: convert to readl_poll_timeout_atomic()" 2021-12-22 09:32:45 +01:00
gadget usb: gadget: f_uac2: Fix incorrect increment of bNumEndpoints 2023-02-09 11:26:44 +01:00
host usb: host: ehci-fsl: Fix module alias 2023-01-24 07:22:46 +01:00
image
isp1760 usb: isp1760: Fix out-of-bounds array access 2022-06-09 10:22:27 +02:00
misc USB: misc: iowarrior: fix up header size for USB_DEVICE_ID_CODEMERCS_IOW100 2023-01-24 07:22:45 +01:00
mon usb: mon: make mmapped memory read only 2022-10-12 09:53:28 +02:00
mtu3 usb: mtu3: fix failed runtime suspend in host only mode 2022-10-26 12:35:19 +02:00
musb usb: musb: remove extra check in musb_gadget_vbus_draw 2022-12-31 13:13:56 +01:00
phy extcon: Fix extcon_get_extcon_dev() error handling 2022-06-14 18:36:21 +02:00
renesas_usbhs usb: renesas: Fix refcount leak bug 2022-08-25 11:40:33 +02:00
roles usb: roles: fix of node refcount leak in usb_role_switch_is_parent() 2022-12-31 13:14:30 +01:00
serial USB: serial: cp210x: add SCALANCE LPE-9000 device id 2023-01-24 07:22:46 +01:00
storage usb-storage: apply IGNORE_UAS only for HIKSEMI MD202 on RTL9210 2023-01-24 07:22:47 +01:00
typec usb: typec: altmodes/displayport: Fix probe pin assign check 2023-02-14 19:18:03 +01:00
usbip usb: usbip: add missing device lock on tweak configuration cmd 2022-06-14 18:36:04 +02:00
Kconfig
Makefile
usb-skeleton.c