summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhub.c
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>2001-09-02 09:26:14 +0000
committerNick Hibma <n_hibma@FreeBSD.org>2001-09-02 09:26:14 +0000
commitaa75eeda2f7591d2a3c5a66eb0fbbb279ff60cc4 (patch)
tree2b374499d95568b635e6846c65fe8d0cb12eacd6 /sys/dev/usb/uhub.c
parent494e7e3923197728424e5e8107d3025b3149e4f7 (diff)
Notes
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r--sys/dev/usb/uhub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index ab22fe9f9de9..f87879f20fa6 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -577,10 +577,10 @@ uhub_intr(usbd_xfer_handle xfer, usbd_private_handle addr, usbd_status status)
struct uhub_softc *sc = addr;
DPRINTFN(5,("uhub_intr: sc=%p\n", sc));
- if (status != USBD_NORMAL_COMPLETION)
+ if (status == USBD_STALLED)
usbd_clear_endpoint_stall_async(sc->sc_ipipe);
-
- usb_needs_explore(sc->sc_hub->bus);
+ else if (status == USBD_NORMAL_COMPLETION)
+ usb_needs_explore(sc->sc_hub->bus);
}
#if defined(__FreeBSD__)