summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2009-05-20 03:33:27 +0000
committeryongari <yongari@FreeBSD.org>2009-05-20 03:33:27 +0000
commita457681b2d7a9a5fb761f5f173b7ee600d713769 (patch)
treef46500833419525afc7e57b7738fb200397355b0 /sys/dev
parent879984a728d558b3de462a2a1f8bbbf20f28c731 (diff)
downloadFreeBSD-src-a457681b2d7a9a5fb761f5f173b7ee600d713769.zip
FreeBSD-src-a457681b2d7a9a5fb761f5f173b7ee600d713769.tar.gz
pci(4) handles PCIM_CMD_INTxDIS so there is no need to poke this
bit in driver.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/age/if_age.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/age/if_age.c b/sys/dev/age/if_age.c
index 74afa2e..d60c285 100644
--- a/sys/dev/age/if_age.c
+++ b/sys/dev/age/if_age.c
@@ -1477,23 +1477,11 @@ age_resume(device_t dev)
{
struct age_softc *sc;
struct ifnet *ifp;
- uint16_t cmd;
sc = device_get_softc(dev);
AGE_LOCK(sc);
- /*
- * Clear INTx emulation disable for hardwares that
- * is set in resume event. From Linux.
- */
- cmd = pci_read_config(sc->age_dev, PCIR_COMMAND, 2);
- if ((cmd & 0x0400) != 0) {
- cmd &= ~0x0400;
- pci_write_config(sc->age_dev, PCIR_COMMAND, cmd, 2);
- }
- AGE_UNLOCK(sc);
age_phy_reset(sc);
- AGE_LOCK(sc);
ifp = sc->age_ifp;
if ((ifp->if_flags & IFF_UP) != 0)
age_init_locked(sc);
OpenPOWER on IntegriCloud