u-boot/drivers/usb
Samuel Holland 70a98caf19 usb: xhci-pci: Move reset logic out of XHCI core
Resetting an XHCI controller inside xhci_register undoes any register
setup performed by the platform driver. And at least on the Allwinner
H6, resetting the XHCI controller also resets the PHY, which prevents
the controller from working. That means the controller must be taken out
of reset before initializing the PHY, which must be done before calling
xhci_register.

The logic in the XHCI core was added to support the Raspberry Pi 4
(although this was not mentioned in the commit log!), which uses the
xhci-pci platform driver. Move the reset logic to the platform driver,
where it belongs, and where it cannot interfere with other platform
drivers.

This also fixes a failure to call reset_free if xhci_register failed.

Fixes: 0b80371b35 ("usb: xhci: Add reset controller support")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2021-09-22 21:29:56 +02:00
..
cdns3 global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
common common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
dwc3 Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST 2021-07-28 14:27:54 -04:00
emul usb: Enforce DM_USB migration for USB_HOST devices. 2021-07-18 21:05:31 -04:00
eth Prepare v2021.01-rc5 2021-01-05 16:20:26 -05:00
gadget global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
host usb: xhci-pci: Move reset logic out of XHCI core 2021-09-22 21:29:56 +02:00
mtu3 Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST 2021-07-28 14:27:54 -04:00
musb usb: musb: Ensure that we set musb dynamic FIFO buffer for every endpoint 2021-03-03 04:12:46 +01:00
musb-new usb: Enforce DM_USB migration for USB_HOST devices. 2021-07-18 21:05:31 -04:00
phy common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ulpi common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Kconfig usb: Enforce DM_USB migration for USB_HOST devices. 2021-07-18 21:05:31 -04:00