]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mwifiex: print status of FW ready event
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 25 Aug 2016 15:05:17 +0000 (17:05 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 17:03:26 +0000 (20:03 +0300)
For debugging purpose print content of reg->fw_status register and other
variables values when waiting for firmware ready event.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c

index 8abbbfe41785b0a4ac1794720c1053fd8bf6c548..2f555b0ebf7df6b12c634c257b6c924dabdf4783 100644 (file)
@@ -2043,6 +2043,10 @@ mwifiex_check_fw_status(struct mwifiex_adapter *adapter, u32 poll_num)
                        ret = -1;
                else
                        ret = 0;
+
+               mwifiex_dbg(adapter, INFO, "Try %d if FW is ready <%d,%#x>",
+                           tries, ret, firmware_stat);
+
                if (ret)
                        continue;
                if (firmware_stat == FIRMWARE_READY_PCIE) {