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/ecddeb0417bb
branches:  trunk
changeset: 949549:ecddeb0417bb
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 f8a25c2ba012 -r ecddeb0417bb 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