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/b5666837c367
branches:  trunk
changeset: 371618:b5666837c367
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 e4832f7cded8 -r b5666837c367 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