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 Adjust delay in a few places. Another att...



details:   https://anonhg.NetBSD.org/src-all/rev/2add3ea7ad38
branches:  trunk
changeset: 940384:2add3ea7ad38
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sat Jun 20 08:32:15 2020 +1000

description:
Adjust delay in a few places.  Another attempt at fixing usb issues
with this device.

diffstat:

 sys/dev/usb/if_urtwn.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9b243e72d172 -r 2add3ea7ad38 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sat Jun 20 08:31:19 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Sat Jun 20 08:32:15 2020 +1000
@@ -4187,20 +4187,20 @@
                reg = urtwn_read_2(sc, R92C_RSV_CTRL) & ~R92E_RSV_MIO_EN;
                urtwn_write_2(sc,R92C_RSV_CTRL, reg);
        }
-       DELAY(50);
+       DELAY(200);
 
        reg = urtwn_read_2(sc, R92C_SYS_FUNC_EN);
        urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg & ~R92C_SYS_FUNC_EN_CPUEN);
        DELAY(50);
 
        urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg | R92C_SYS_FUNC_EN_CPUEN);
-       DELAY(50);
+       DELAY(200);
 
        if (ISSET(sc->chip, URTWN_CHIP_92EU)) {
                reg = urtwn_read_2(sc, R92C_RSV_CTRL) | R92E_RSV_MIO_EN;
                urtwn_write_2(sc,R92C_RSV_CTRL, reg);
        }
-       DELAY(50);
+       urtwn_delay_ms(sc, 10);
 
 }
 



Home | Main Index | Thread Index | Old Index