Make sure to stop both TX and RX MACs in ale_stop_mac(). Previously

it used to stop TX MAC only such that MAC reconfiguration after
getting a link didn't work as expected.

PR:	kern/173652
This commit is contained in:
Pyun YongHyeon 2012-12-17 06:01:57 +00:00
parent d48fc6b377
commit 9f988ef16b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244341

View File

@ -2932,7 +2932,7 @@ ale_stop_mac(struct ale_softc *sc)
reg = CSR_READ_4(sc, ALE_MAC_CFG);
if ((reg & (MAC_CFG_TX_ENB | MAC_CFG_RX_ENB)) != 0) {
reg &= ~MAC_CFG_TX_ENB | MAC_CFG_RX_ENB;
reg &= ~(MAC_CFG_TX_ENB | MAC_CFG_RX_ENB);
CSR_WRITE_4(sc, ALE_MAC_CFG, reg);
}