diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2017-12-18 12:36:16 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2017-12-18 12:36:16 +0000 |
| commit | def005adcde8e924ef3e3abd25d352fc48b03199 (patch) | |
| tree | 3d0765af66da3623bf0ca0cc6cfecc1e59dbd600 /sys/dev/ic | |
| parent | 282dd8bcc0595add560d6b126cbd3a8a3e4df607 (diff) | |
Stop the device at attach in case it was previously initialized
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/bwfm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/bwfm.c b/sys/dev/ic/bwfm.c index b9eae70253b..289763ff841 100644 --- a/sys/dev/ic/bwfm.c +++ b/sys/dev/ic/bwfm.c @@ -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 @@ bwfm_attach(struct bwfm_softc *sc) 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; |
