diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-29 18:33:24 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-29 18:33:24 +0000 |
commit | 7db90f8dd492e25ba3a736b83a8a443e4a71e716 (patch) | |
tree | 5e1e6c90069e6e2f1b86725a0a28d178e61553ae /sys/dev/usb | |
parent | c0a19be517314a589b041d3eb33a5944dc22a1aa (diff) |
Clear root hub's "port link state".
Allow to re-plug USB3 devices on the root hub withtout going through a
suspend/resume cycle (or rebooting) with Intel ICH7 xHCI as found the
hardway by sobrado@.
Debugging help from M.A.R. Osorio, tested by sobrado@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/xhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index 1d43f1c7bcd..4243a6661d8 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xhci.c,v 1.61 2015/06/22 10:29:18 mpi Exp $ */ +/* $OpenBSD: xhci.c,v 1.62 2015/06/29 18:33:23 mpi Exp $ */ /* * Copyright (c) 2014-2015 Martin Pieuchot @@ -2186,6 +2186,7 @@ xhci_root_ctrl_start(struct usbd_xfer *xfer) XOWRITE4(sc, port, v | XHCI_PS_PEC); break; case UHF_C_PORT_SUSPEND: + case UHF_C_PORT_LINK_STATE: XOWRITE4(sc, port, v | XHCI_PS_PLC); break; case UHF_C_PORT_OVER_CURRENT: |