]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[xhci] Set link state to RxDetect after disabling USB3 root hub port
authorMichael Brown <mcb30@ipxe.org>
Thu, 2 Jul 2020 21:53:11 +0000 (22:53 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 3 Jul 2020 11:10:04 +0000 (12:10 +0100)
commit18d4be8aafe9ea468daed907aca3fd730e8c0d2e
treec893992cb726640bd88a2f456bb2f77ff29351e5
parent761ed4365a64ac34443a3de4c0e81e4b9491b33e
[xhci] Set link state to RxDetect after disabling USB3 root hub port

The "disabled" port states for USB2 and USB3 are not directly
equivalent.  In particular, a disabled USB3 port will not detect new
device connections.  The result is that a USB3 device disconnected
from and reconnected to an xHCI root hub port will end up reconnecting
as a USB2 device.

Fix by setting the link state to RxDetect after disabling the port, as
is already done during initialisation.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/usb/xhci.c