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/866bd7dac84e
branches:  trunk
changeset: 359464:866bd7dac84e
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 3bf5b0aa3666 -r 866bd7dac84e 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
@@ -3051,6 +3051,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);
@@ -3116,6 +3117,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