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/44f7e0e4c726
branches: trunk
changeset: 987986:44f7e0e4c726
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 10a07707f1b5 -r 44f7e0e4c726 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
@@ -4216,20 +4216,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