Add USB polling calls to umass_cam_poll(). This appears to be enough

to make kernel crash dumps to umass devices work, at least in some
cases.
This commit is contained in:
Ian Dowse 2006-02-12 15:51:03 +00:00
parent 430683286b
commit 496a1b8908

View file

@ -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);
}