diff options
author | wpaul <wpaul@FreeBSD.org> | 2001-06-05 20:51:17 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2001-06-05 20:51:17 +0000 |
commit | 83c7edbffd98b6de5455fe826f09e22e514ce570 (patch) | |
tree | 12e93b0bc98d29576acbdaec9537307aca30bcd8 /sys/pci | |
parent | 47ad85ccaf42fc916877112e77428eabd4c675aa (diff) | |
download | FreeBSD-src-83c7edbffd98b6de5455fe826f09e22e514ce570.zip FreeBSD-src-83c7edbffd98b6de5455fe826f09e22e514ce570.tar.gz |
Fix mindo:
PCN_BCR_CLRBIT(sc, PCN_BCR_MIICTL, PCN_MIICTL_DANAS);
should be:
PCN_BCR_SETBIT(sc, PCN_BCR_MIICTL, PCN_MIICTL_DANAS);
Turning this bit on is what disables MII autoneg, not turning it off.
Without this, manually setting the media doesn't work.
Noticed by: Jim Browne <jbrowne@jbrowne.com>
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/if_pcn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_pcn.c b/sys/pci/if_pcn.c index 6bf15e0..a2dc467 100644 --- a/sys/pci/if_pcn.c +++ b/sys/pci/if_pcn.c @@ -1212,7 +1212,7 @@ static void pcn_init(xsc) PCN_CSR_SETBIT(sc, PCN_CSR_TFEAT, PCN_TFEAT_PAD_TX); /* Disable MII autoneg (we handle this ourselves). */ - PCN_BCR_CLRBIT(sc, PCN_BCR_MIICTL, PCN_MIICTL_DANAS); + PCN_BCR_SETBIT(sc, PCN_BCR_MIICTL, PCN_MIICTL_DANAS); if (sc->pcn_type == Am79C978) pcn_bcr_write(sc, PCN_BCR_PHYSEL, |