sst-linux/drivers/usb
Prashant Malani 01815a1caf usb: typec: altmodes/displayport: Fix probe pin assign check
commit 54e5c00a4eb0a4c663445b245f641bbfab142430 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:11:52 +01:00
..
atm
c67x00
cdns3 usb: cdns3: remove fetched trb from cache before dequeuing 2023-01-24 07:24:38 +01:00
chipidea
class
common Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout" 2023-01-18 11:58:33 +01:00
core usb: core: add quirk for Alcor Link AK9563 smartcard reader 2023-02-14 19:11:52 +01:00
dwc2
dwc3 usb: dwc3: qcom: enable vbus override when in OTG dr-mode 2023-02-09 11:28:14 +01:00
early
gadget usb: gadget: udc: do not clear gadget driver.bus 2023-02-09 11:28:21 +01:00
host usb: host: ehci-fsl: Fix module alias 2023-01-24 07:24:38 +01:00
image
isp1760
misc usb: misc: onboard_hub: Move 'attach' work to the driver 2023-01-24 07:24:35 +01:00
mon
mtu3
musb usb: musb: fix error return code in omap2430_probe() 2023-01-24 07:24:38 +01:00
phy
renesas_usbhs
roles usb: roles: fix of node refcount leak in usb_role_switch_is_parent() 2022-12-31 13:32:41 +01:00
serial USB: serial: cp210x: add SCALANCE LPE-9000 device id 2023-01-24 07:24:38 +01:00
storage usb-storage: apply IGNORE_UAS only for HIKSEMI MD202 on RTL9210 2023-01-24 07:24:38 +01:00
typec usb: typec: altmodes/displayport: Fix probe pin assign check 2023-02-14 19:11:52 +01:00
usbip use less confusing names for iov_iter direction initializers 2023-02-09 11:28:04 +01:00
Kconfig
Makefile
usb-skeleton.c