From e469fe6e0a2ae7c703b9e3ed69cbbd1d424e28e7 Mon Sep 17 00:00:00 2001 From: Josef Karthauser Date: Tue, 2 Apr 2002 09:49:36 +0000 Subject: MFNetBSD: uhub.c (1.49), usb.c (1.51), usbdi.h (1.48), usbdivar.h (1.63) date: 2001/01/21 19:00:06; author: augustss; Change the operation of the USB event thread. Before it only performed USB device discovery, now it can also perform (short) tasks for device drivers that need a process context, but don't have one. This is not pretty, but better than using busy-wait in an interrupt context. --- sys/dev/usb/uhub.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb/uhub.c') diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index 36c700fa86df..d3585907e263 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhub.c,v 1.48 2000/12/29 01:24:56 augustss Exp $ */ +/* $NetBSD: uhub.c,v 1.49 2001/01/21 19:00:06 augustss Exp $ */ /* $FreeBSD$ */ /* @@ -592,7 +592,8 @@ uhub_intr(usbd_xfer_handle xfer, usbd_private_handle addr, usbd_status status) if (status == USBD_STALLED) usbd_clear_endpoint_stall_async(sc->sc_ipipe); else if (status == USBD_NORMAL_COMPLETION) - usb_needs_explore(sc->sc_hub->bus); + usb_needs_explore(sc->sc_hub); + } #if defined(__FreeBSD__) -- cgit v1.2.3