ath10k: sdio: disable fwlog prints
authorAlagu Sankar <alagusankar@silex-india.com>
Mon, 25 Feb 2019 09:45:59 +0000 (11:45 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 Feb 2019 13:01:58 +0000 (15:01 +0200)
The SDIO firmware may turn it on based on scratch registers so disable the
firmware log to avoid that.

Co-developed-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Alagu Sankar <alagusankar@silex-india.com>
Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c

index 0c62a61b5eac821c8d4ca5d42982271e4054f353..7ccd6741c5b0dff38295242be2c9c78b96c99391 100644 (file)
@@ -648,6 +648,13 @@ static void ath10k_init_sdio(struct ath10k *ar)
        param &= ~HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE;
        param |= HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET;
        ath10k_bmi_write32(ar, hi_acs_flags, param);
+
+       /* Explicitly set fwlog prints to zero as target may turn it on
+        * based on scratch registers.
+        */
+       ath10k_bmi_read32(ar, hi_option_flag, &param);
+       param |= HI_OPTION_DISABLE_DBGLOG;
+       ath10k_bmi_write32(ar, hi_option_flag, param);
 }
 
 static int ath10k_init_configure_target(struct ath10k *ar)