Don't assume the run bit is still set after a suspend.

Submitted by: Andrea Bittau ( adotbittauatcsdotucldotacdotuk)
MFC After: 1 week
This commit is contained in:
julian 2007-03-27 18:55:06 +00:00
parent 116255f144
commit dd34a303ed

View File

@ -723,6 +723,7 @@ uhci_power(int why, void *v)
sc->sc_intr_xfer);
sc->sc_bus.use_polling++;
uhci_run(sc, 0); /* stop the controller */
cmd &= ~UHCI_CMD_RS;
/* save some state if BIOS doesn't */
sc->sc_saved_frnum = UREAD2(sc, UHCI_FRNUM);