diff options
author | Nicolas Saenz Julienne <nsaenzjulienne@suse.de> | 2021-01-14 16:49:00 +0100 |
---|---|---|
committer | Matthias Brugger <mbrugger@suse.com> | 2021-02-18 11:56:25 +0100 |
commit | e3bbc1f74e05b194cfd2193f93f5c9310fbd3252 (patch) | |
tree | 937eb8f9d0f92eb3225caa53ec5ba4190ed3d6bd /drivers/usb/host | |
parent | 1613cf506c68ea4361ac6c8287932ba86e5e04a2 (diff) |
usb: xhci-pci: Add DM_FLAG_OS_PREPARE flag
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>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 6c5024d3f19..aaa243f2917 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -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[] = { |