Now pci(4) handles PCIM_CMD_INTxDIS so there is no need to poke
this bit in driver.
This commit is contained in:
parent
645aa556fb
commit
59f72548f6
@ -1543,20 +1543,11 @@ ale_resume(device_t dev)
|
||||
struct ale_softc *sc;
|
||||
struct ifnet *ifp;
|
||||
int pmc;
|
||||
uint16_t cmd, pmstat;
|
||||
uint16_t pmstat;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
|
||||
ALE_LOCK(sc);
|
||||
/*
|
||||
* Clear INTx emulation disable for hardwares that
|
||||
* is set in resume event. From Linux.
|
||||
*/
|
||||
cmd = pci_read_config(sc->ale_dev, PCIR_COMMAND, 2);
|
||||
if ((cmd & 0x0400) != 0) {
|
||||
cmd &= ~0x0400;
|
||||
pci_write_config(sc->ale_dev, PCIR_COMMAND, cmd, 2);
|
||||
}
|
||||
if (pci_find_extcap(sc->ale_dev, PCIY_PMG, &pmc) == 0) {
|
||||
/* Disable PME and clear PME status. */
|
||||
pmstat = pci_read_config(sc->ale_dev,
|
||||
|
Loading…
Reference in New Issue
Block a user