⛏️ index : haiku.git

author Jérôme Duval <jerome.duval@gmail.com> 2022-11-16 20:03:59.0 +01:00:00
committer waddlesplash <waddlesplash@gmail.com> 2022-11-17 5:51:40.0 +00:00:00
commit
f78374ec1616edc76815ebe62cd347bbd83da92c [patch]
tree
a2c64d2bba32955ba5fed6504e3496953450f350
parent
fa1d24918fbe4b150ab36b298490619483ba784a
download
f78374ec1616edc76815ebe62cd347bbd83da92c.tar.gz

xhci: wait a bit after starting the controller

without this, my swift SF114-34 doesn't find the boot partition when booting on xhci, while it works on another port.

Change-Id: I141aa1497582860500991c44cdea81cff55756ed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5792
Reviewed-by: waddlesplash <waddlesplash@gmail.com>

Diff

 src/add-ons/kernel/busses/usb/xhci.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/add-ons/kernel/busses/usb/xhci.cpp b/src/add-ons/kernel/busses/usb/xhci.cpp
index 873869a..fc2a392 100644
--- a/src/add-ons/kernel/busses/usb/xhci.cpp
+++ b/src/add-ons/kernel/busses/usb/xhci.cpp
@@ -85,6 +85,9 @@
		return B_ERROR;
	}

	// let it settle to give explore a chance to run
	snooze(1000);

	*bus_cookie = xhci;

	return B_OK;