Module Name: src
Committed By: nat
Date: Fri Sep 17 13:02:52 UTC 2021
Modified Files:
src/sys/dev/usb: if_urtwn.c
Log Message:
Sprinkle a little delay.
To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/usb/if_urtwn.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_urtwn.c
diff -u src/sys/dev/usb/if_urtwn.c:1.99 src/sys/dev/usb/if_urtwn.c:1.100
--- src/sys/dev/usb/if_urtwn.c:1.99 Fri Sep 17 13:00:20 2021
+++ src/sys/dev/usb/if_urtwn.c Fri Sep 17 13:02:52 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: if_urtwn.c,v 1.99 2021/09/17 13:00:20 nat Exp $ */
+/* $NetBSD: if_urtwn.c,v 1.100 2021/09/17 13:02:52 nat Exp $ */
/* $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $ */
/*-
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.99 2021/09/17 13:00:20 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.100 2021/09/17 13:02:52 nat Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -3088,6 +3088,7 @@ urtwn_r92c_power_on(struct urtwn_softc *
/* Unlock ISO/CLK/Power control register. */
urtwn_write_1(sc, R92C_RSV_CTRL, 0);
+ DELAY(5);
/* Move SPS into PWM mode. */
urtwn_write_1(sc, R92C_SPS0_CTRL, 0x2b);
DELAY(5);
@@ -3153,6 +3154,9 @@ urtwn_r92c_power_on(struct urtwn_softc *
urtwn_write_2(sc, R92C_CR, reg);
urtwn_write_1(sc, 0xfe10, 0x19);
+
+ urtwn_delay_ms(sc, 1);
+
return 0;
}