Don't bother to enable ASPM L1 to save more power. Even though I am
authorMichael Neumann <mneumann@ntecs.de>
Tue, 5 Aug 2014 12:46:44 +0000 (14:46 +0200)
committerMichael Neumann <mneumann@ntecs.de>
Tue, 5 Aug 2014 12:46:44 +0000 (14:46 +0200)
not able to trigger the issue with sample boards, some users seems
to suffer from freeze/lockup when system is booted without UTP cable
plugged in. I'm not sure whether this is BIOS issue or controller
bug. This change fixes AR8132 lockup issue seen on EEE PC.

Obtained-From: FreeBSD (r214542 d5b678ca0dc503e5c0ee4dde9d43cb0138def17c)

sys/dev/netif/alc/if_alc.c

index 4bf8cc1..cd1fbb2 100644 (file)
@@ -296,8 +296,8 @@ alc_miibus_statchg(device_t dev)
                reg = CSR_READ_4(sc, ALC_MAC_CFG);
                reg |= MAC_CFG_TX_ENB | MAC_CFG_RX_ENB;
                CSR_WRITE_4(sc, ALC_MAC_CFG, reg);
+               alc_aspm(sc, IFM_SUBTYPE(mii->mii_media_active));
        }
-       alc_aspm(sc, IFM_SUBTYPE(mii->mii_media_active));
 }
 
 static void