From a767cc38494aa7523e1bd62a6f716ab56954dcfc Mon Sep 17 00:00:00 2001 From: adrian Date: Thu, 19 May 2016 05:09:20 +0000 Subject: [PATCH] [bwn] quieten the "invalid firmware state". That pops up in the rev 5xx / 6xx microcode on the later cores (4312, 4322.) I'm not sure why this is happening yet and I'll dig into it, but Linux b43 does the same thing. --- sys/dev/bwn/if_bwn.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c index 5eaa2bb3464b..615a3ad57c5f 100644 --- a/sys/dev/bwn/if_bwn.c +++ b/sys/dev/bwn/if_bwn.c @@ -3774,8 +3774,11 @@ bwn_mac_enable(struct bwn_mac *mac) state = bwn_shm_read_2(mac, BWN_SHARED, BWN_SHARED_UCODESTAT); if (state != BWN_SHARED_UCODESTAT_SUSPEND && - state != BWN_SHARED_UCODESTAT_SLEEP) - device_printf(sc->sc_dev, "warn: firmware state (%d)\n", state); + state != BWN_SHARED_UCODESTAT_SLEEP) { + DPRINTF(sc, BWN_DEBUG_FW, + "%s: warn: firmware state (%d)\n", + __func__, state); + } mac->mac_suspended--; KASSERT(mac->mac_suspended >= 0,