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 Backed out changeset 43c05566916a (may be ...



details:   https://anonhg.NetBSD.org/src-all/rev/364a93a63549
branches:  trunk
changeset: 374849:364a93a63549
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Mon Sep 20 17:02:23 2021 +0200

description:
Backed out changeset 43c05566916a (may be redone differently later)

diffstat:

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

diffs (32 lines):

diff -r 8c5cf3282742 -r 364a93a63549 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Mon Sep 20 17:01:52 2021 +0200
+++ b/sys/dev/usb/if_urtwn.c    Mon Sep 20 17:02:23 2021 +0200
@@ -1114,7 +1114,7 @@ urtwn_fw_cmd(struct urtwn_softc *sc, uin
        for (ntries = 0; ntries < 100; ntries++) {
                if (!(urtwn_read_1(sc, R92C_HMETFR) & (1 << fwcur)))
                        break;
-               urtwn_delay_ms(sc, 2);
+               DELAY(2000);
        }
        if (ntries == 100) {
                aprint_error_dev(sc->sc_dev,
@@ -1197,16 +1197,16 @@ urtwn_rf_read(struct urtwn_softc *sc, in
 
        urtwn_bb_write(sc, R92C_HSSI_PARAM2(0),
            reg[0] & ~R92C_HSSI_PARAM2_READ_EDGE);
-       urtwn_delay_ms(sc, 1);
+       DELAY(1000);
 
        urtwn_bb_write(sc, R92C_HSSI_PARAM2(chain),
            RW(reg[chain], R92C_HSSI_PARAM2_READ_ADDR, addr) |
            R92C_HSSI_PARAM2_READ_EDGE);
-       urtwn_delay_ms(sc, 1);
+       DELAY(1000);
 
        urtwn_bb_write(sc, R92C_HSSI_PARAM2(0),
            reg[0] | R92C_HSSI_PARAM2_READ_EDGE);
-       urtwn_delay_ms(sc, 1);
+       DELAY(1000);
 
        if (urtwn_bb_read(sc, R92C_HSSI_PARAM1(chain)) & R92C_HSSI_PARAM1_PI) {
                val = urtwn_bb_read(sc, R92C_HSPI_READBACK(chain));



Home | Main Index | Thread Index | Old Index