Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb usbnet(9): Call mii_down once we've finished wit...
details: https://anonhg.NetBSD.org/src/rev/ce9bf6b447c9
branches: trunk
changeset: 370039:ce9bf6b447c9
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Sep 13 09:38:19 2022 +0000
description:
usbnet(9): Call mii_down once we've finished with mii_tick.
diffstat:
sys/dev/usb/usbnet.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 90223e8e5471 -r ce9bf6b447c9 sys/dev/usb/usbnet.c
--- a/sys/dev/usb/usbnet.c Tue Sep 13 09:37:49 2022 +0000
+++ b/sys/dev/usb/usbnet.c Tue Sep 13 09:38:19 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbnet.c,v 1.110 2022/08/23 01:08:04 riastradh Exp $ */
+/* $NetBSD: usbnet.c,v 1.111 2022/09/13 09:38:19 riastradh Exp $ */
/*
* Copyright (c) 2019 Matthew R. Green
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.110 2022/08/23 01:08:04 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.111 2022/09/13 09:38:19 riastradh Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -1162,6 +1162,13 @@
mutex_exit(&unp->unp_miilock);
}
+ /*
+ * Now that we have stopped calling mii_tick, bring the MII
+ * state machine down.
+ */
+ if (mii)
+ mii_down(mii);
+
/* Stop transfers. */
usbnet_ep_stop_pipes(un);
Home |
Main Index |
Thread Index |
Old Index