Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Stop the device at attach in case it was previous...



details:   https://anonhg.NetBSD.org/src/rev/fd4b66468b52
branches:  trunk
changeset: 828532:fd4b66468b52
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Dec 18 12:36:16 2017 +0000

description:
Stop the device at attach in case it was previously initialized

diffstat:

 sys/dev/ic/bwfm.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 8071c525dbfb -r fd4b66468b52 sys/dev/ic/bwfm.c
--- a/sys/dev/ic/bwfm.c Mon Dec 18 08:24:29 2017 +0000
+++ b/sys/dev/ic/bwfm.c Mon Dec 18 12:36:16 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bwfm.c,v 1.4 2017/10/23 15:21:10 jmcneill Exp $ */
+/* $NetBSD: bwfm.c,v 1.5 2017/12/18 12:36:16 jmcneill Exp $ */
 /* $OpenBSD: bwfm.c,v 1.5 2017/10/16 22:27:16 patrick Exp $ */
 /*
  * Copyright (c) 2010-2016 Broadcom Corporation
@@ -149,6 +149,9 @@
                pcq_put(sc->sc_freetask, t);
        }
 
+       /* Stop the device in case it was previously initialized */
+       bwfm_fwvar_cmd_set_int(sc, BWFM_C_DOWN, 1);
+
        if (bwfm_fwvar_cmd_get_int(sc, BWFM_C_GET_VERSION, &tmp)) {
                printf("%s: could not read io type\n", DEVNAME(sc));
                return;



Home | Main Index | Thread Index | Old Index