ath10k: move non-fatal warn logs to dbg level
authorGovind Singh <govinds@codeaurora.org>
Mon, 25 Nov 2019 13:10:01 +0000 (13:10 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Nov 2019 15:48:03 +0000 (17:48 +0200)
During driver load below warn logs are printed in the console if
firmware doesn't support some optional HTC services, ex:pktlog.
It is likely some older fw version may not support PKTLOG HTC
service as legacy fw uses HTC DATA service  for pktlog.
Move this log to debug level to remove un-necessary warn message
on console.

htc.c:803:  ath10k_warn(ar, "unsupported HTC service id: %d\n",
htc.c:881:  ath10k_warn(ar, "unsupported HTC service id: %d\n",

Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/htc.c

index 1d4d1a1..0bbd141 100644 (file)
@@ -800,8 +800,8 @@ setup:
                                                &ep->ul_pipe_id,
                                                &ep->dl_pipe_id);
        if (status) {
-               ath10k_warn(ar, "unsupported HTC service id: %d\n",
-                           ep->service_id);
+               ath10k_dbg(ar, ATH10K_DBG_BOOT, "unsupported HTC service id: %d\n",
+                          ep->service_id);
                return status;
        }
 
@@ -878,8 +878,8 @@ static bool ath10k_htc_pktlog_svc_supported(struct ath10k *ar)
                                                &ul_pipe_id,
                                                &dl_pipe_id);
        if (status) {
-               ath10k_warn(ar, "unsupported HTC service id: %d\n",
-                           ATH10K_HTC_SVC_ID_HTT_LOG_MSG);
+               ath10k_dbg(ar, ATH10K_DBG_BOOT, "unsupported HTC pktlog service id: %d\n",
+                          ATH10K_HTC_SVC_ID_HTT_LOG_MSG);
 
                return false;
        }