mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 13:15:05 +00:00
remove the use of uhci_reset to wake up the controller after
resume/suspend (->resume is broken again, will be fixed properly ASAP) style fixes
This commit is contained in:
parent
271ef6615e
commit
82799545e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51989
|
@ -93,9 +93,7 @@ static const char *uhci_device_generic = "UHCI (generic) USB controller";
|
||||||
static int
|
static int
|
||||||
uhci_pci_suspend(device_t self)
|
uhci_pci_suspend(device_t self)
|
||||||
{
|
{
|
||||||
uhci_softc_t *sc;
|
uhci_softc_t *sc = device_get_softc(self);
|
||||||
|
|
||||||
sc = device_get_softc(self);
|
|
||||||
bus_generic_suspend(self);
|
bus_generic_suspend(self);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -104,10 +102,11 @@ uhci_pci_suspend(device_t self)
|
||||||
static int
|
static int
|
||||||
uhci_pci_resume(device_t self)
|
uhci_pci_resume(device_t self)
|
||||||
{
|
{
|
||||||
uhci_softc_t *sc;
|
uhci_softc_t *sc = device_get_softc(self);
|
||||||
|
|
||||||
sc = device_get_softc(self);
|
#if 0
|
||||||
uhci_reset(sc);
|
uhci_reset(sc);
|
||||||
|
#endif
|
||||||
bus_generic_resume(self);
|
bus_generic_resume(self);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -93,9 +93,7 @@ static const char *uhci_device_generic = "UHCI (generic) USB controller";
|
||||||
static int
|
static int
|
||||||
uhci_pci_suspend(device_t self)
|
uhci_pci_suspend(device_t self)
|
||||||
{
|
{
|
||||||
uhci_softc_t *sc;
|
uhci_softc_t *sc = device_get_softc(self);
|
||||||
|
|
||||||
sc = device_get_softc(self);
|
|
||||||
bus_generic_suspend(self);
|
bus_generic_suspend(self);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -104,10 +102,11 @@ uhci_pci_suspend(device_t self)
|
||||||
static int
|
static int
|
||||||
uhci_pci_resume(device_t self)
|
uhci_pci_resume(device_t self)
|
||||||
{
|
{
|
||||||
uhci_softc_t *sc;
|
uhci_softc_t *sc = device_get_softc(self);
|
||||||
|
|
||||||
sc = device_get_softc(self);
|
#if 0
|
||||||
uhci_reset(sc);
|
uhci_reset(sc);
|
||||||
|
#endif
|
||||||
bus_generic_resume(self);
|
bus_generic_resume(self);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue