[SRU][I][PATCH 1/2] UBUNTU: SAUCE: Revert "Revert "xhci: Set HCD flag to defer primary roothub registration""

Luke Nowakowski-Krijger luke.nowakowskikrijger at canonical.com
Thu Apr 7 20:00:54 UTC 2022


BugLink: https://bugs.launchpad.net/bugs/1968210

This reverts commit 15993bb4c60646d562583bae0272f46179833932.

Reintroduce this commit as it fixes an issue with certain intel xHCI
controllers where device enumeration happens before xHC is running,
causing USB devices not to be detected at boot time.

This commit will be reintroduced upstream due to previous bugs
being fixed, but lets reintroduce it now to fix the problem users are
experiencing.

Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger at canonical.com>
---
 drivers/usb/host/xhci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 57b67050b284..a8300bc8f634 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -692,6 +692,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");
 
-- 
2.32.0




More information about the kernel-team mailing list