aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2006-02-12 15:51:03 +0000
committerIan Dowse <iedowse@FreeBSD.org>2006-02-12 15:51:03 +0000
commit496a1b8908ef37316143ee33ffe8260f0983a2ef (patch)
treeb1b4346ea81939d2a537a2ac8f40ad332c054635 /sys/dev/usb
parent430683286bd935c0cf1c8e0d107f5f4bf7fba750 (diff)
Notes
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/umass.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index 57ef5e557c0e5..596860bfcfc48 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -2651,21 +2651,17 @@ umass_cam_action(struct cam_sim *sim, union ccb *ccb)
}
}
-/* umass_cam_poll
- * all requests are handled through umass_cam_action, requests
- * are never pending. So, nothing to do here.
- */
Static void
umass_cam_poll(struct cam_sim *sim)
{
-#ifdef USB_DEBUG
struct umass_softc *sc = (struct umass_softc *) sim->softc;
DPRINTF(UDMASS_SCSI, ("%s: CAM poll\n",
USBDEVNAME(sc->sc_dev)));
-#endif
- /* nop */
+ usbd_set_polling(sc->sc_udev, 1);
+ usbd_dopoll(sc->iface);
+ usbd_set_polling(sc->sc_udev, 0);
}