Module Name: src
Committed By: riastradh
Date: Thu Mar 3 05:53:41 UTC 2022
Modified Files:
src/sys/dev/usb: if_aue.c
Log Message:
aue(4): Enable rx/tx registers on init before usbnet_init_rx_tx.
This way, we still have exclusive access to the registers before
calls to aue_uno_mcast can start happening without the usbnet core
lock.
To generate a diff of this commit:
cvs rdiff -u -r1.182 -r1.183 src/sys/dev/usb/if_aue.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/if_aue.c
diff -u src/sys/dev/usb/if_aue.c:1.182 src/sys/dev/usb/if_aue.c:1.183
--- src/sys/dev/usb/if_aue.c:1.182 Thu Mar 3 05:53:33 2022
+++ src/sys/dev/usb/if_aue.c Thu Mar 3 05:53:41 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aue.c,v 1.182 2022/03/03 05:53:33 riastradh Exp $ */
+/* $NetBSD: if_aue.c,v 1.183 2022/03/03 05:53:41 riastradh Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.182 2022/03/03 05:53:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.183 2022/03/03 05:53:41 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -975,13 +975,13 @@ aue_uno_init(struct ifnet *ifp)
else
AUE_CLRBIT(sc, AUE_CTL2, AUE_CTL2_RX_PROMISC);
- rv = usbnet_init_rx_tx(un);
-
/* Enable RX and TX */
aue_csr_write_1(sc, AUE_CTL0, AUE_CTL0_RXSTAT_APPEND | AUE_CTL0_RX_ENB);
AUE_SETBIT(sc, AUE_CTL0, AUE_CTL0_TX_ENB);
AUE_SETBIT(sc, AUE_CTL2, AUE_CTL2_EP3_CLR);
+ rv = usbnet_init_rx_tx(un);
+
//mii_mediachg(mii);
return rv;