Commit 3ef987be authored by Kalle Valo's avatar Kalle Valo

ath6kl: add more boot debug messages

Move some of the debug logs to boot level because they are more
interesting when debugging boot issues.
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 02f0d6fc
...@@ -2499,7 +2499,7 @@ static void htc_setup_msg_bndl(struct htc_target *target) ...@@ -2499,7 +2499,7 @@ static void htc_setup_msg_bndl(struct htc_target *target)
target->msg_per_bndl_max = min(target->max_scat_entries, target->msg_per_bndl_max = min(target->max_scat_entries,
target->msg_per_bndl_max); target->msg_per_bndl_max);
ath6kl_dbg(ATH6KL_DBG_HTC, ath6kl_dbg(ATH6KL_DBG_BOOT,
"htc bundling allowed msg_per_bndl_max %d\n", "htc bundling allowed msg_per_bndl_max %d\n",
target->msg_per_bndl_max); target->msg_per_bndl_max);
...@@ -2509,7 +2509,7 @@ static void htc_setup_msg_bndl(struct htc_target *target) ...@@ -2509,7 +2509,7 @@ static void htc_setup_msg_bndl(struct htc_target *target)
target->max_tx_bndl_sz = min(HIF_MBOX0_EXT_WIDTH, target->max_tx_bndl_sz = min(HIF_MBOX0_EXT_WIDTH,
target->max_xfer_szper_scatreq); target->max_xfer_szper_scatreq);
ath6kl_dbg(ATH6KL_DBG_HTC, "htc max_rx_bndl_sz %d max_tx_bndl_sz %d\n", ath6kl_dbg(ATH6KL_DBG_BOOT, "htc max_rx_bndl_sz %d max_tx_bndl_sz %d\n",
target->max_rx_bndl_sz, target->max_tx_bndl_sz); target->max_rx_bndl_sz, target->max_tx_bndl_sz);
if (target->max_tx_bndl_sz) if (target->max_tx_bndl_sz)
...@@ -2563,7 +2563,7 @@ int ath6kl_htc_wait_target(struct htc_target *target) ...@@ -2563,7 +2563,7 @@ int ath6kl_htc_wait_target(struct htc_target *target)
target->tgt_creds = le16_to_cpu(rdy_msg->ver2_0_info.cred_cnt); target->tgt_creds = le16_to_cpu(rdy_msg->ver2_0_info.cred_cnt);
target->tgt_cred_sz = le16_to_cpu(rdy_msg->ver2_0_info.cred_sz); target->tgt_cred_sz = le16_to_cpu(rdy_msg->ver2_0_info.cred_sz);
ath6kl_dbg(ATH6KL_DBG_HTC, ath6kl_dbg(ATH6KL_DBG_BOOT,
"htc target ready credits %d size %d\n", "htc target ready credits %d size %d\n",
target->tgt_creds, target->tgt_cred_sz); target->tgt_creds, target->tgt_cred_sz);
...@@ -2578,7 +2578,7 @@ int ath6kl_htc_wait_target(struct htc_target *target) ...@@ -2578,7 +2578,7 @@ int ath6kl_htc_wait_target(struct htc_target *target)
target->msg_per_bndl_max = 0; target->msg_per_bndl_max = 0;
} }
ath6kl_dbg(ATH6KL_DBG_HTC, "htc using protocol %s (%d)\n", ath6kl_dbg(ATH6KL_DBG_BOOT, "htc using protocol %s (%d)\n",
(target->htc_tgt_ver == HTC_VERSION_2P0) ? "2.0" : ">= 2.1", (target->htc_tgt_ver == HTC_VERSION_2P0) ? "2.0" : ">= 2.1",
target->htc_tgt_ver); target->htc_tgt_ver);
......
...@@ -471,6 +471,8 @@ static int ath6kl_sdio_power_on(struct ath6kl_sdio *ar_sdio) ...@@ -471,6 +471,8 @@ static int ath6kl_sdio_power_on(struct ath6kl_sdio *ar_sdio)
if (!ar_sdio->is_disabled) if (!ar_sdio->is_disabled)
return 0; return 0;
ath6kl_dbg(ATH6KL_DBG_BOOT, "sdio power on\n");
sdio_claim_host(func); sdio_claim_host(func);
ret = sdio_enable_func(func); ret = sdio_enable_func(func);
...@@ -500,6 +502,8 @@ static int ath6kl_sdio_power_off(struct ath6kl_sdio *ar_sdio) ...@@ -500,6 +502,8 @@ static int ath6kl_sdio_power_off(struct ath6kl_sdio *ar_sdio)
if (ar_sdio->is_disabled) if (ar_sdio->is_disabled)
return 0; return 0;
ath6kl_dbg(ATH6KL_DBG_BOOT, "sdio power off\n");
/* Disable the card */ /* Disable the card */
sdio_claim_host(ar_sdio->func); sdio_claim_host(ar_sdio->func);
ret = sdio_disable_func(ar_sdio->func); ret = sdio_disable_func(ar_sdio->func);
...@@ -678,8 +682,8 @@ static int ath6kl_sdio_enable_scatter(struct ath6kl *ar) ...@@ -678,8 +682,8 @@ static int ath6kl_sdio_enable_scatter(struct ath6kl *ar)
MAX_SCATTER_REQUESTS, virt_scat); MAX_SCATTER_REQUESTS, virt_scat);
if (!ret) { if (!ret) {
ath6kl_dbg(ATH6KL_DBG_SCATTER, ath6kl_dbg(ATH6KL_DBG_BOOT,
"hif-scatter enabled: max scatter req : %d entries: %d\n", "hif-scatter enabled requests %d entries %d\n",
MAX_SCATTER_REQUESTS, MAX_SCATTER_REQUESTS,
MAX_SCATTER_ENTRIES_PER_REQ); MAX_SCATTER_ENTRIES_PER_REQ);
...@@ -703,8 +707,8 @@ static int ath6kl_sdio_enable_scatter(struct ath6kl *ar) ...@@ -703,8 +707,8 @@ static int ath6kl_sdio_enable_scatter(struct ath6kl *ar)
return ret; return ret;
} }
ath6kl_dbg(ATH6KL_DBG_SCATTER, ath6kl_dbg(ATH6KL_DBG_BOOT,
"Vitual scatter enabled, max_scat_req:%d, entries:%d\n", "virtual scatter enabled requests %d entries %d\n",
ATH6KL_SCATTER_REQS, ATH6KL_SCATTER_ENTRIES_PER_REQ); ATH6KL_SCATTER_REQS, ATH6KL_SCATTER_ENTRIES_PER_REQ);
target->max_scat_entries = ATH6KL_SCATTER_ENTRIES_PER_REQ; target->max_scat_entries = ATH6KL_SCATTER_ENTRIES_PER_REQ;
...@@ -778,8 +782,8 @@ static int ath6kl_sdio_probe(struct sdio_func *func, ...@@ -778,8 +782,8 @@ static int ath6kl_sdio_probe(struct sdio_func *func,
struct ath6kl *ar; struct ath6kl *ar;
int count; int count;
ath6kl_dbg(ATH6KL_DBG_SDIO, ath6kl_dbg(ATH6KL_DBG_BOOT,
"new func %d vendor 0x%x device 0x%x block 0x%x/0x%x\n", "sdio new func %d vendor 0x%x device 0x%x block 0x%x/0x%x\n",
func->num, func->vendor, func->device, func->num, func->vendor, func->device,
func->max_blksize, func->cur_blksize); func->max_blksize, func->cur_blksize);
...@@ -840,7 +844,7 @@ static int ath6kl_sdio_probe(struct sdio_func *func, ...@@ -840,7 +844,7 @@ static int ath6kl_sdio_probe(struct sdio_func *func,
goto err_core_alloc; goto err_core_alloc;
} }
ath6kl_dbg(ATH6KL_DBG_SDIO, "4-bit async irq mode enabled\n"); ath6kl_dbg(ATH6KL_DBG_BOOT, "4-bit async irq mode enabled\n");
} }
/* give us some time to enable, in ms */ /* give us some time to enable, in ms */
...@@ -888,8 +892,8 @@ static void ath6kl_sdio_remove(struct sdio_func *func) ...@@ -888,8 +892,8 @@ static void ath6kl_sdio_remove(struct sdio_func *func)
{ {
struct ath6kl_sdio *ar_sdio; struct ath6kl_sdio *ar_sdio;
ath6kl_dbg(ATH6KL_DBG_SDIO, ath6kl_dbg(ATH6KL_DBG_BOOT,
"removed func %d vendor 0x%x device 0x%x\n", "sdio removed func %d vendor 0x%x device 0x%x\n",
func->num, func->vendor, func->device); func->num, func->vendor, func->device);
ar_sdio = sdio_get_drvdata(func); ar_sdio = sdio_get_drvdata(func);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment