]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: xhci-pci: Add DM_FLAG_OS_PREPARE flag
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Thu, 14 Jan 2021 15:49:00 +0000 (16:49 +0100)
committerMatthias Brugger <mbrugger@suse.com>
Thu, 18 Feb 2021 10:56:25 +0000 (11:56 +0100)
The PCIe bus the controller is connected to might need to be removed
prior the handover. Make sure xhci-pci is also removed so as to avoid
unexpected timeouts or hangs.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
drivers/usb/host/xhci-pci.c

index 6c5024d3f1903a21a432607be93225ded8981448..aaa243f29178e027e4f92c92e4acf7e568fb42f0 100644 (file)
@@ -70,7 +70,7 @@ U_BOOT_DRIVER(xhci_pci) = {
        .ops    = &xhci_usb_ops,
        .plat_auto      = sizeof(struct usb_plat),
        .priv_auto      = sizeof(struct xhci_ctrl),
-       .flags  = DM_FLAG_ALLOC_PRIV_DMA,
+       .flags  = DM_FLAG_OS_PREPARE | DM_FLAG_ALLOC_PRIV_DMA,
 };
 
 static struct pci_device_id xhci_pci_supported[] = {