summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-17 13:43:16 +0000
committerharti <harti@FreeBSD.org>2003-07-17 13:43:16 +0000
commite9cbd38c2dcad75f14a4cce044e553babda869de (patch)
tree384cf940b6589289fe08e3f08aa2851b8c1251b2 /sys/dev/hatm
parentff245040e373412b011b977bceff2d7ad1bf881a (diff)
downloadFreeBSD-src-e9cbd38c2dcad75f14a4cce044e553babda869de.zip
FreeBSD-src-e9cbd38c2dcad75f14a4cce044e553babda869de.tar.gz
The card resets the S/Uni chip when it is resetted. Therefor
we need to reinitialize the PHY after the call to reset when stopping the interface.
Diffstat (limited to 'sys/dev/hatm')
-rw-r--r--sys/dev/hatm/if_hatm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/hatm/if_hatm.c b/sys/dev/hatm/if_hatm.c
index 34f1727..e1704e7 100644
--- a/sys/dev/hatm/if_hatm.c
+++ b/sys/dev/hatm/if_hatm.c
@@ -2296,6 +2296,11 @@ hatm_stop(struct hatm_softc *sc)
(void)hatm_reset(sc);
/*
+ * Card resets the SUNI when resetted, so re-initialize it
+ */
+ utopia_reset(&sc->utopia);
+
+ /*
* Give any waiters on closing a VCC a chance. They will stop
* to wait if they see that IFF_RUNNING disappeared.
*/
OpenPOWER on IntegriCloud