linux/drivers/usb/common
Jon Hunter 2e3dd4a624 usb: common: ulpi: Fix crash in ulpi_match()
Commit 7495af9308 ("ARM: multi_v7_defconfig: Enable drivers for
DragonBoard 410c") enables the CONFIG_PHY_QCOM_USB_HS for the ARM
multi_v7_defconfig. Enabling this Kconfig is causing the kernel to crash
on the Tegra20 Ventana platform in the ulpi_match() function.

The Qualcomm USB HS PHY driver that is enabled by CONFIG_PHY_QCOM_USB_HS,
registers a ulpi_driver but this driver does not provide an 'id_table',
so when ulpi_match() is called on the Tegra20 Ventana platform, it
crashes when attempting to deference the id_table pointer which is not
valid. The Qualcomm USB HS PHY driver uses device-tree for matching the
ULPI driver with the device and so fix this crash by using device-tree
for matching if the id_table is not valid.

Fixes: ef6a7bcfb0 ("usb: ulpi: Support device discovery via DT")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20220117150039.44058-1-jonathanh@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-26 13:42:05 +01:00
..
common.c usb: common: add helper to get role-switch-default-mode 2021-07-27 15:58:37 +02:00
common.h USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
debug.c USB: common: debug: add needed kernel.h include 2022-01-05 16:20:27 +01:00
Kconfig Partially revert "usb: Kconfig: using select for USB_COMMON dependency" 2021-10-05 13:45:16 +02:00
led.c USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
Makefile usb: common: add USB GPIO based connection detection driver 2019-09-03 19:01:04 +02:00
ulpi.c usb: common: ulpi: Fix crash in ulpi_match() 2022-01-26 13:42:05 +01:00
usb-conn-gpio.c usb: common: usb-conn-gpio: use usb_role_string() to print role status 2021-05-27 09:17:18 +02:00
usb-otg-fsm.c usb: otg-fsm: Fix hrtimer list corruption 2021-07-27 16:31:31 +02:00