linux/drivers/usb
Mark Pearson 50a7230a02 usb: typec: ucsi: don't retrieve PDOs if not supported
On systems where the UCSI PDOs are not supported, the UCSI driver is
giving an error message. This can cause users to believe there is a HW
issue with their system when in fact it is working as designed.

Check if PDO_DETAILS are supported as a feature before attempting to
access PDO. If not supported return that zero PDOs are available.

Tested on Lenovo L14 G5 AMD and confirmed with Lenovo FW team that PDOs
are not supported on this platform.

Suggested-by: Diogo Ivo <diogo.ivo@siemens.com>
Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240609214328.6580-1-mpearson-lenovo@squebb.ca
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-06-20 19:30:51 +02:00
..
atm usb: ueagle-atm: Use wait_event_freezable_timeout() in uea_wait() 2024-01-04 15:57:29 +01:00
c67x00 USB: c67x00: Remove unused declaration c67x00_hcd_msg_received() 2023-10-02 16:42:33 +02:00
cdns3 usb: cdns3-ti: Add workaround for Errata i2409 2024-06-04 15:41:10 +02:00
chipidea usb: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:52 +02:00
class usb: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:52 +02:00
common usb: common: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:47 +02:00
core usb: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:52 +02:00
dwc2 usb: dwc2: gadget: Don't write invalid mapped sg entries into dma_desc with iommu enabled 2024-06-04 15:41:26 +02:00
dwc3 usb: dwc3: Support quirk for writing high-low order 2024-06-20 19:30:30 +02:00
early usb: early: xhci-dbc: Use memcpy_and_pad() 2023-01-31 10:40:54 +01:00
fotg210 usb: fotg210: Add missing kernel doc description 2024-05-11 08:42:03 +01:00
gadget usb: gadget: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:19 +02:00
host usb: host: xhci-plat: Add support for XHCI_WRITE_64_HI_LO 2024-06-20 19:30:30 +02:00
image scsi: core: Add a dma_alignment field to the host and host template 2024-04-11 21:37:48 -04:00
isp1760 mm, slab: remove last vestiges of SLAB_MEM_SPREAD 2024-03-12 20:32:19 -07:00
misc usb: misc: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-06-20 19:18:57 +02:00
mon usb: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:52 +02:00
mtu3 tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
musb usb: musb: da8xx: Implement BABBLE recovery 2024-06-04 15:44:11 +02:00
phy usb: phy: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:32 +02:00
renesas_usbhs usb: renesas_usbhs: Remove renesas_usbhs_get_info() wrapper 2024-04-18 16:47:49 +02:00
roles Merge v6.8-rc6 into usb-next 2024-02-26 06:53:50 +01:00
serial USB: serial: option: add Telit FN920C04 rmnet compositions 2024-04-18 17:14:49 +02:00
storage usb: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:52 +02:00
typec usb: typec: ucsi: don't retrieve PDOs if not supported 2024-06-20 19:30:51 +02:00
usbip usbip: Don't submit special requests twice 2024-06-04 15:40:56 +02: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