]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "Revert "xhci: Set HCD flag to defer primary roothub registration""
authorSasha Levin <sashal@kernel.org>
Thu, 26 Jan 2023 14:21:24 +0000 (09:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:43 +0000 (07:52 +0100)
This reverts commit e58ff4707f0abddf1b3e4a309e6b2350a0069214.

Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/xhci.c

index 35d96796854d617cbdc6ca9b6aa8c1870e6abacb..b8915790a20af7c36e17e760d3e84e6c992731b8 100644 (file)
@@ -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");