Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/usb Sprinkle a little delay.
details: https://anonhg.NetBSD.org/src-all/rev/323a93f200af
branches: trunk
changeset: 369333:323a93f200af
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Fri Jan 07 01:06:57 2022 +1100
description:
Sprinkle a little delay.
diffstat:
sys/dev/usb/if_urtwn.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r 2865b04130cd -r 323a93f200af sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Fri Jan 07 00:53:56 2022 +1100
+++ b/sys/dev/usb/if_urtwn.c Fri Jan 07 01:06:57 2022 +1100
@@ -3052,6 +3052,7 @@
/* 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);
@@ -3117,6 +3118,9 @@
urtwn_write_2(sc, R92C_CR, reg);
urtwn_write_1(sc, 0xfe10, 0x19);
+
+ urtwn_delay_ms(sc, 1);
+
return 0;
}
Home |
Main Index |
Thread Index |
Old Index