Commit missing bits, forgotten when committing support for suspend/resume

for USB.

Call uhci_power when suspending and resuming.

Approved by: The One.
This commit is contained in:
Nick Hibma 2000-02-04 10:18:37 +00:00
parent b932a03c79
commit b70b9ce019
2 changed files with 14 additions and 8 deletions

View File

@ -93,8 +93,13 @@ static const char *uhci_device_generic = "UHCI (generic) USB controller";
static int
uhci_pci_suspend(device_t self)
{
uhci_softc_t *sc = device_get_softc(self);
int err;
bus_generic_suspend(self);
err = bus_generic_suspend(self);
if (err)
return err;
uhci_power(PWR_SUSPEND, sc);
return 0;
}
@ -102,11 +107,9 @@ uhci_pci_suspend(device_t self)
static int
uhci_pci_resume(device_t self)
{
#if 0
uhci_softc_t *sc = device_get_softc(self);
uhci_reset(sc);
#endif
uhci_power(PWR_RESUME, sc);
bus_generic_resume(self);
return 0;

View File

@ -93,8 +93,13 @@ static const char *uhci_device_generic = "UHCI (generic) USB controller";
static int
uhci_pci_suspend(device_t self)
{
uhci_softc_t *sc = device_get_softc(self);
int err;
bus_generic_suspend(self);
err = bus_generic_suspend(self);
if (err)
return err;
uhci_power(PWR_SUSPEND, sc);
return 0;
}
@ -102,11 +107,9 @@ uhci_pci_suspend(device_t self)
static int
uhci_pci_resume(device_t self)
{
#if 0
uhci_softc_t *sc = device_get_softc(self);
uhci_reset(sc);
#endif
uhci_power(PWR_RESUME, sc);
bus_generic_resume(self);
return 0;