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:
parent
b932a03c79
commit
b70b9ce019
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user