MFC: implement umass_cam_poll() and add a missing ohci_waitintr()

call so that polled operation works.

PR:		usb/93720
This commit is contained in:
iedowse 2006-06-26 00:31:25 +00:00
parent b9ee3676a6
commit 5666262af1
2 changed files with 6 additions and 7 deletions

View File

@ -3053,6 +3053,9 @@ ohci_device_bulk_start(usbd_xfer_handle xfer)
splx(s);
if (sc->sc_bus.use_polling)
ohci_waitintr(sc, xfer);
return (USBD_IN_PROGRESS);
}

View File

@ -2655,21 +2655,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);
}