diff options
| author | Josef Karthauser <joe@FreeBSD.org> | 2002-05-02 22:47:37 +0000 |
|---|---|---|
| committer | Josef Karthauser <joe@FreeBSD.org> | 2002-05-02 22:47:37 +0000 |
| commit | 38c162edb302678a39b9405f072abfbba9af82d9 (patch) | |
| tree | 5553652b8c72ae8262d4e9e3f9b6b1d68bf37d75 | |
| parent | 85f79d52e92c59cb2755800edc0be8d9eab1bf81 (diff) | |
Notes
| -rw-r--r-- | sys/dev/usb/usbdi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index ce177510a9ec..ca39ea328a4c 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -1,4 +1,4 @@ -/* $NetBSD: usbdi.c,v 1.93 2001/12/24 21:36:15 augustss Exp $ */ +/* $NetBSD: usbdi.c,v 1.94 2001/12/30 20:26:59 augustss Exp $ */ /* $FreeBSD$ */ /* @@ -1086,6 +1086,9 @@ usbd_set_polling(usbd_device_handle dev, int on) dev->bus->use_polling++; else dev->bus->use_polling--; + /* When polling we need to make sure there is nothing pending to do. */ + if (dev->bus->use_polling) + dev->bus->methods->soft_intr(dev->bus); } |
