From: Stanislaw Gruszka Date: Thu, 25 Aug 2016 15:05:17 +0000 (+0200) Subject: mwifiex: print status of FW ready event X-Git-Tag: v4.9-rc1~127^2~176^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09dd9ec598c3fdcb9874d13d9bbab0e2ece6748b;p=platform%2Fkernel%2Flinux-exynos.git mwifiex: print status of FW ready event 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c index 8abbbfe..2f555b0 100644 --- a/drivers/net/wireless/marvell/mwifiex/pcie.c +++ b/drivers/net/wireless/marvell/mwifiex/pcie.c @@ -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) {