Suspend the children before we turn off card events in hardware. This

was done, I believe, to work around some cards having issues in the
suspend case.  I think that this helped my Sony VAIO TS505 work better
when it had certain wireless cards in it and I did a apm -z.  I've not
tested suspend/resume on other laptops in a long time, so I hope this
doesn't cause greif.  Please let me know if it does.
This commit is contained in:
Warner Losh 2006-05-24 17:26:16 +00:00
parent 1b2ec08c94
commit 2f6303b0f6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158892

View File

@ -1568,11 +1568,13 @@ cbb_suspend(device_t self)
int error = 0;
struct cbb_softc *sc = device_get_softc(self);
error = bus_generic_suspend(self);
if (error != 0)
return (error);
cbb_set(sc, CBB_SOCKET_MASK, 0); /* Quiet hardware */
bus_teardown_intr(self, sc->irq_res, sc->intrhand);
sc->flags &= ~CBB_CARD_OK; /* Card is bogus now */
error = bus_generic_suspend(self);
return (error);
return (0);
}
int