Clear device-specific PCI register 0x41 during attach and on resume.
Appoved by: silby (mentor)
This commit is contained in:
parent
63311be5f3
commit
0e22d2c550
@ -230,6 +230,8 @@ ipw_attach(device_t dev)
|
|||||||
pci_set_powerstate(dev, PCI_POWERSTATE_D0);
|
pci_set_powerstate(dev, PCI_POWERSTATE_D0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pci_write_config(dev, 0x41, 0, 1);
|
||||||
|
|
||||||
/* enable bus-mastering */
|
/* enable bus-mastering */
|
||||||
pci_enable_busmaster(dev);
|
pci_enable_busmaster(dev);
|
||||||
|
|
||||||
@ -718,6 +720,8 @@ ipw_resume(device_t dev)
|
|||||||
|
|
||||||
IPW_LOCK(sc);
|
IPW_LOCK(sc);
|
||||||
|
|
||||||
|
pci_write_config(dev, 0x41, 0, 1);
|
||||||
|
|
||||||
if (ifp->if_flags & IFF_UP) {
|
if (ifp->if_flags & IFF_UP) {
|
||||||
ifp->if_init(ifp->if_softc);
|
ifp->if_init(ifp->if_softc);
|
||||||
if (ifp->if_flags & IFF_RUNNING)
|
if (ifp->if_flags & IFF_RUNNING)
|
||||||
|
Loading…
Reference in New Issue
Block a user