From: Sasha Levin Date: Thu, 26 Jan 2023 14:21:24 +0000 (-0500) Subject: Revert "Revert "xhci: Set HCD flag to defer primary roothub registration"" X-Git-Tag: baikal/aarch64/sdk5.9~65 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=b973c6aeaa711d003dde6eec2894e9a9b54fd202;p=kernel.git Revert "Revert "xhci: Set HCD flag to defer primary roothub registration"" This reverts commit e58ff4707f0abddf1b3e4a309e6b2350a0069214. Signed-off-by: Sasha Levin --- diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 35d96796854d6..b8915790a20af 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -693,6 +693,7 @@ int xhci_run(struct usb_hcd *hcd) if (ret) xhci_free_command(xhci, command); } + set_bit(HCD_FLAG_DEFER_RH_REGISTER, &hcd->flags); xhci_dbg_trace(xhci, trace_xhci_dbg_init, "Finished xhci_run for USB2 roothub");