android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dan Carpenter fd21197af5 Revert "usb: xhci: tegra: Fix error check"
commit 288b4fa1798e3637a9304c6e90a93d900e02369c upstream.

This reverts commit 18fc7c435be3f17ea26a21b2e2312fcb9088e01f.

The reverted commit was based on static analysis and a misunderstanding
of how PTR_ERR() and NULLs are supposed to work.  When a function
returns both pointer errors and NULL then normally the NULL means
"continue operating without a feature because it was deliberately
turned off".  The NULL should not be treated as a failure.  If a driver
cannot work when that feature is disabled then the KConfig should
enforce that the function cannot return NULL.  We should not need to
test for it.

In this code, the patch means that certain tegra_xusb_probe() will
fail if the firmware supports power-domains but CONFIG_PM is disabled.

Signed-off-by: Dan Carpenter <[email protected]>
Fixes: 18fc7c435be3 ("usb: xhci: tegra: Fix error check")
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2023-08-11 11:53:51 +02:00
..
atm
c67x00
cdns3 usb: cdns3: Fix issue with using incorrect PCI device function 2023-04-05 11:16:40 +02:00
chipidea usb: chipidea: fix missing goto in ci_hdrc_probe 2023-05-17 11:35:49 +02:00
class USB: usbtmc: Fix direction for 0-length ioctl control messages 2023-05-30 12:44:06 +01:00
common Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout" 2023-01-18 11:42:06 +01:00
core USB: quirks: add quirk for Focusrite Scarlett 2023-08-11 11:53:51 +02:00
dwc2 usb: dwc2: fix wrong order of phy_power_on and phy_init 2022-09-15 12:04:52 +02:00
dwc3 usb: dwc3: don't reset device side if dwc3 was configured as host-only 2023-08-11 11:53:51 +02:00
early
gadget usb: gadget: udc: fix NULL dereference in remove() 2023-06-28 10:18:41 +02:00
host Revert "usb: xhci: tegra: Fix error check" 2023-08-11 11:53:51 +02:00
image
isp1760
misc USB: sisusbvga: Add endpoint checks 2023-05-30 12:44:10 +01:00
mon usb: mon: make mmapped memory read only 2022-10-15 07:54:38 +02:00
mtu3 usb: mtu3: fix kernel panic at qmu transfer done irq handler 2023-05-17 11:35:49 +02:00
musb treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
phy usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe() 2023-07-27 08:37:20 +02:00
renesas_usbhs usb: renesas: Fix refcount leak bug 2022-08-25 11:18:33 +02:00
roles usb: roles: fix of node refcount leak in usb_role_switch_is_parent() 2023-01-18 11:41:24 +01:00
serial USB: serial: simple: sort driver entries 2023-08-11 11:53:50 +02:00
storage treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
typec usb: typec: altmodes/displayport: fix pin_assignment_show 2023-05-30 12:44:06 +01:00
usbip
Kconfig
Makefile
usb-skeleton.c