aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2013-11-20 03:00:41 -0500
committerKalle Valo <kvalo@qca.qualcomm.com>2013-11-20 03:34:59 -0500
commitc8c39afee20124b29b69a35b78e5081dccb97a9b (patch)
tree0dbc9004dc7709b55b3fe9dbda995ef48de582d1
parent95cbb6a8f1baa4118912a7d38cf4eca7583c868a (diff)
ath10k: make core boot messages more compact
We can show the same amount of information in one line. And then it's easier to show this information only during first firmware boot (see next patch). For UART printouts there's already a message when they are enabled so no need to have a print when they are disabled, that's the default anyway. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath10k/core.c16
-rw-r--r--drivers/net/wireless/ath/ath10k/htt.c4
2 files changed, 12 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c
index be5b17e89902..e6c468b3ea56 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -597,10 +597,8 @@ static int ath10k_init_uart(struct ath10k *ar)
597 return ret; 597 return ret;
598 } 598 }
599 599
600 if (!uart_print) { 600 if (!uart_print)
601 ath10k_info("UART prints disabled\n");
602 return 0; 601 return 0;
603 }
604 602
605 ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin, 7); 603 ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin, 7);
606 if (ret) { 604 if (ret) {
@@ -645,8 +643,8 @@ static int ath10k_init_hw_params(struct ath10k *ar)
645 643
646 ar->hw_params = *hw_params; 644 ar->hw_params = *hw_params;
647 645
648 ath10k_info("Hardware name %s version 0x%x\n", 646 ath10k_dbg(ATH10K_DBG_BOOT, "Hardware name %s version 0x%x\n",
649 ar->hw_params.name, ar->target_version); 647 ar->hw_params.name, ar->target_version);
650 648
651 return 0; 649 return 0;
652} 650}
@@ -807,7 +805,8 @@ int ath10k_core_start(struct ath10k *ar)
807 if (status) 805 if (status)
808 goto err_htt_detach; 806 goto err_htt_detach;
809 807
810 ath10k_info("firmware %s booted\n", ar->hw->wiphy->fw_version); 808 ath10k_dbg(ATH10K_DBG_BOOT, "firmware %s booted\n",
809 ar->hw->wiphy->fw_version);
811 810
812 status = ath10k_wmi_cmd_init(ar); 811 status = ath10k_wmi_cmd_init(ar);
813 if (status) { 812 if (status) {
@@ -833,6 +832,11 @@ int ath10k_core_start(struct ath10k *ar)
833 ar->free_vdev_map = (1 << TARGET_NUM_VDEVS) - 1; 832 ar->free_vdev_map = (1 << TARGET_NUM_VDEVS) - 1;
834 INIT_LIST_HEAD(&ar->arvifs); 833 INIT_LIST_HEAD(&ar->arvifs);
835 834
835 ath10k_info("%s (0x%x) fw %s api %d htt %d.%d\n",
836 ar->hw_params.name, ar->target_version,
837 ar->hw->wiphy->fw_version, ar->fw_api,
838 ar->htt.target_version_major, ar->htt.target_version_minor);
839
836 return 0; 840 return 0;
837 841
838err_disconnect_htc: 842err_disconnect_htc:
diff --git a/drivers/net/wireless/ath/ath10k/htt.c b/drivers/net/wireless/ath/ath10k/htt.c
index 5f7eeebc5432..69697af59ce0 100644
--- a/drivers/net/wireless/ath/ath10k/htt.c
+++ b/drivers/net/wireless/ath/ath10k/htt.c
@@ -104,8 +104,8 @@ err_htc_attach:
104 104
105static int ath10k_htt_verify_version(struct ath10k_htt *htt) 105static int ath10k_htt_verify_version(struct ath10k_htt *htt)
106{ 106{
107 ath10k_info("htt target version %d.%d\n", 107 ath10k_dbg(ATH10K_DBG_BOOT, "htt target version %d.%d\n",
108 htt->target_version_major, htt->target_version_minor); 108 htt->target_version_major, htt->target_version_minor);
109 109
110 if (htt->target_version_major != 2 && 110 if (htt->target_version_major != 2 &&
111 htt->target_version_major != 3) { 111 htt->target_version_major != 3) {