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 Add more delay in a few places. Yet anoth...
details: https://anonhg.NetBSD.org/src-all/rev/b96f280405f0
branches: trunk
changeset: 374961:b96f280405f0
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Sat Jun 20 08:31:19 2020 +1000
description:
Add more delay in a few places. Yet another attempt to address the
usb transfer issues.
diffstat:
sys/dev/usb/if_urtwn.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (43 lines):
diff -r 6259f0a103af -r b96f280405f0 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Sat Jun 20 08:30:12 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c Sat Jun 20 08:31:19 2020 +1000
@@ -1910,6 +1910,7 @@ urtwn_set_led(struct urtwn_softc *sc, in
}
sc->ledlink = on; /* Save LED state. */
}
+ urtwn_delay_ms(sc, 1);
}
static void
@@ -2454,6 +2455,7 @@ urtwn_newstate(struct ieee80211vap *vap,
reg = urtwn_bb_read(sc, R92C_OFDM0_AGCCORE1(0));
reg = RW(reg, R92C_OFDM0_AGCCORE1_GAIN, 0x20);
urtwn_bb_write(sc, R92C_OFDM0_AGCCORE1(0), reg);
+ urtwn_delay_ms(sc, 1);
if (!ISSET(sc->chip, URTWN_CHIP_88E)) {
reg = urtwn_bb_read(sc, R92C_OFDM0_AGCCORE1(1));
@@ -4201,6 +4203,7 @@ urtwn_fw_reset(struct urtwn_softc *sc)
/* Force 8051 reset. */
urtwn_write_2(sc, R92C_SYS_FUNC_EN,
urtwn_read_2(sc, R92C_SYS_FUNC_EN) & ~R92C_SYS_FUNC_EN_CPUEN);
+ urtwn_delay_ms(sc, 10);
}
static void
@@ -5272,12 +5275,15 @@ urtwn_set_chan(struct urtwn_softc *sc, s
chan -= 2;
}
+ urtwn_delay_ms(sc, 1);
+
/* Set Tx power for this new channel. */
urtwn_set_txpower(sc, chan, ht40m);
for (i = 0; i < sc->nrxchains; i++) {
urtwn_rf_write(sc, i, R92C_RF_CHNLBW,
RW(sc->rf_chnlbw[i], R92C_RF_CHNLBW_CHNL, chan));
+ urtwn_delay_ms(sc, 1);
}
if (ht40m) {
Home |
Main Index |
Thread Index |
Old Index