Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Reset MCU ready status before resetting the MCU.



details:   https://anonhg.NetBSD.org/src/rev/9e6d5e5a5eed
branches:  trunk
changeset: 967176:9e6d5e5a5eed
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Dec 01 21:01:19 2019 +0000

description:
Reset MCU ready status before resetting the MCU.
Fixes PR kern/54728

diffstat:

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

diffs (27 lines):

diff -r a690e3cf251f -r 9e6d5e5a5eed sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun Dec 01 21:00:43 2019 +0000
+++ b/sys/dev/usb/if_urtwn.c    Sun Dec 01 21:01:19 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_urtwn.c,v 1.75 2019/11/26 10:34:16 gson Exp $       */
+/*     $NetBSD: if_urtwn.c,v 1.76 2019/12/01 21:01:19 mlelstv Exp $    */
 /*     $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $       */
 
 /*-
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.75 2019/11/26 10:34:16 gson Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.76 2019/12/01 21:01:19 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -3467,6 +3467,8 @@
        }
 
        if (urtwn_read_1(sc, R92C_MCUFWDL) & R92C_MCUFWDL_RAM_DL_SEL) {
+               /* Reset MCU ready status */
+               urtwn_write_1(sc, R92C_MCUFWDL, 0);
                if (ISSET(sc->chip, URTWN_CHIP_88E) ||
                    ISSET(sc->chip, URTWN_CHIP_92EU))
                        urtwn_r88e_fw_reset(sc);



Home | Main Index | Thread Index | Old Index