diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2000-08-13 18:21:18 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2000-08-13 18:21:18 +0000 |
commit | 2122121947d25ac80e894df60ef6b598c8aeee4f (patch) | |
tree | 2ec6f3e420fce833fb2fe672103e7ac5ed9951bf /sys/dev/usb/uhci.c | |
parent | d3b79934ef0de284945e094216799e7923171051 (diff) | |
download | FreeBSD-src-2122121947d25ac80e894df60ef6b598c8aeee4f.zip FreeBSD-src-2122121947d25ac80e894df60ef6b598c8aeee4f.tar.gz |
Fake the Power On command on the virtual hub.
This removes the two IOERROR's on startup a many has been seeing on UHCI
controllers.
Taken from NetBSD.
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r-- | sys/dev/usb/uhci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index ea9a802..d9aeabf 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -2919,12 +2919,15 @@ uhci_root_ctrl_start(usbd_xfer_handle xfer) index, UREAD2(sc, port))); sc->sc_isreset = 1; break; + case UHF_PORT_POWER: + /* Pretend we turned on power */ + err = USBD_NORMAL_COMPLETION; + goto ret; case UHF_C_PORT_CONNECTION: case UHF_C_PORT_ENABLE: case UHF_C_PORT_OVER_CURRENT: case UHF_PORT_CONNECTION: case UHF_PORT_OVER_CURRENT: - case UHF_PORT_POWER: case UHF_PORT_LOW_SPEED: case UHF_C_PORT_SUSPEND: case UHF_C_PORT_RESET: |