ath10k: move fw init print
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 22 Aug 2014 12:23:29 +0000 (14:23 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 25 Aug 2014 08:28:13 +0000 (11:28 +0300)
Firmware probing is done only once when driver is
registered and firmware version is guaranteed to
remain the same until driver is unregistered.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c

index 28f0adea73b63f5cc870c72509f61ddb6f7e2ca3..23ba32175fcc6eddd0340eeb5bcc41c81fc61472 100644 (file)
@@ -815,11 +815,6 @@ int ath10k_core_start(struct ath10k *ar)
 
        INIT_LIST_HEAD(&ar->arvifs);
 
-       if (!test_bit(ATH10K_FLAG_FIRST_BOOT_DONE, &ar->dev_flags))
-               ath10k_print_driver_info(ar);
-
-       __set_bit(ATH10K_FLAG_FIRST_BOOT_DONE, &ar->dev_flags);
-
        return 0;
 
 err_hif_stop:
@@ -924,6 +919,7 @@ static int ath10k_core_probe_fw(struct ath10k *ar)
                return ret;
        }
 
+       ath10k_print_driver_info(ar);
        ath10k_core_stop(ar);
 
        mutex_unlock(&ar->conf_mutex);