[xhci] Delay after (possibly) forcing port link state to RxDetect
Some xHCI controllers (observed with a Renesas Electronics PCIe USB3 card) seem to require a delay after forcing the link state of USB3 ports to RxDetect. Omitting this delay causes strange behaviour including system lockups. Add an unconditional 20ms delay after writing the port link states. This seems to be sufficient to avoid the problem. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -2774,6 +2774,11 @@ static int xhci_hub_open ( struct usb_hub *hub ) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Some xHCI cards seem to require an additional delay after
|
||||
* setting the link state to RxDetect.
|
||||
*/
|
||||
mdelay ( XHCI_LINK_STATE_DELAY_MS );
|
||||
|
||||
/* Record hub driver private data */
|
||||
usb_hub_set_drvdata ( hub, xhci );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user