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/49c55d11439d
branches:  trunk
changeset: 374962:49c55d11439d
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 b96f280405f0 -r 49c55d11439d 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
@@ -4219,20 +4219,20 @@ urtwn_r88e_fw_reset(struct urtwn_softc *
                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