diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-11-26 15:56:00 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-11-26 15:56:00 +0000 |
commit | 95771ee153fc60e2025cf02b022fc75928ce33ec (patch) | |
tree | dbd412887fd54d6ce5ef212491581122d1620ece /sys/dev/pci/if_cas.c | |
parent | 2780a6859a5af847650e39067a3525e9216c46a8 (diff) |
Avoid resetting PCS. Don't do loopback at the serial link.
Diffstat (limited to 'sys/dev/pci/if_cas.c')
-rw-r--r-- | sys/dev/pci/if_cas.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/pci/if_cas.c b/sys/dev/pci/if_cas.c index 292edd72648..522eb6193ab 100644 --- a/sys/dev/pci/if_cas.c +++ b/sys/dev/pci/if_cas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cas.c,v 1.10 2007/11/26 15:36:22 kettenis Exp $ */ +/* $OpenBSD: if_cas.c,v 1.11 2007/11/26 15:55:59 kettenis Exp $ */ /* * @@ -523,10 +523,6 @@ cas_config(struct cas_softc *sc) CAS_MII_DATAPATH_MODE, CAS_MII_DATAPATH_SERDES); bus_space_write_4(sc->sc_memt, sc->sc_memh, - CAS_MII_SLINK_CONTROL, - CAS_MII_SLINK_LOOPBACK|CAS_MII_SLINK_EN_SYNC_D); - - bus_space_write_4(sc->sc_memt, sc->sc_memh, CAS_MII_CONFIG, CAS_MII_CONFIG_ENABLE); mii->mii_readreg = cas_pcs_readreg; @@ -672,7 +668,8 @@ cas_reset(struct cas_softc *sc) cas_reset_tx(sc); /* Do a full reset */ - bus_space_write_4(t, h, CAS_RESET, CAS_RESET_RX|CAS_RESET_TX); + bus_space_write_4(t, h, CAS_RESET, + CAS_RESET_RX | CAS_RESET_TX | CAS_RESET_BLOCK_PCS); if (!cas_bitwait(sc, h, CAS_RESET, CAS_RESET_RX | CAS_RESET_TX, 0)) printf("%s: cannot reset device\n", sc->sc_dev.dv_xname); splx(s); |