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/26bf162de4dd
branches:  trunk
changeset: 377954:26bf162de4dd
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 466eb03a195e -r 26bf162de4dd 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 @@ 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);
@@ -3117,6 +3118,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;
 }
 



Home | Main Index | Thread Index | Old Index