Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/marvell When an interrput is link change, notify lin...
details: https://anonhg.NetBSD.org/src/rev/86c1c6262eac
branches: trunk
changeset: 782597:86c1c6262eac
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Nov 08 14:37:47 2012 +0000
description:
When an interrput is link change, notify link change to mii layer using
mii_pollstat().
diffstat:
sys/dev/marvell/if_mvgbe.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 6ab517b3a446 -r 86c1c6262eac sys/dev/marvell/if_mvgbe.c
--- a/sys/dev/marvell/if_mvgbe.c Thu Nov 08 14:32:01 2012 +0000
+++ b/sys/dev/marvell/if_mvgbe.c Thu Nov 08 14:37:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_mvgbe.c,v 1.29 2012/11/08 14:32:01 msaitoh Exp $ */
+/* $NetBSD: if_mvgbe.c,v 1.30 2012/11/08 14:37:47 msaitoh Exp $ */
/*
* Copyright (c) 2007, 2008 KIYOHARA Takashi
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.29 2012/11/08 14:32:01 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.30 2012/11/08 14:37:47 msaitoh Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -922,6 +922,9 @@
MVGBE_WRITE(sc, MVGBE_RQC, MVGBE_RQC_DISQ(0));
MVGBE_WRITE(sc, MVGBE_TQC, MVGBE_TQC_DISQ);
}
+
+ /* Notify link change event to mii layer */
+ mii_pollstat(&sc->sc_mii);
}
if (ic & (MVGBE_IC_RXBUF | MVGBE_IC_RXERROR))
Home |
Main Index |
Thread Index |
Old Index