From f91d7a5a2bc707296ea15e4e459dcfb3e8a49e93 Mon Sep 17 00:00:00 2001 From: Yuanyuan Liu Date: Fri, 6 May 2016 17:12:04 -0700 Subject: [PATCH] icnss: Update icnss logs Enable important kernel logs which are essential for cold boot debug. Remove unnecessary log for normal behavior. CRs-Fixed: 1013082 Change-Id: I5234f0511fa1c81072e740386e90e07f5e813dd0 Signed-off-by: Yuanyuan Liu --- drivers/soc/qcom/icnss.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/soc/qcom/icnss.c b/drivers/soc/qcom/icnss.c index a64fdac00ff4..75a5327b28a5 100644 --- a/drivers/soc/qcom/icnss.c +++ b/drivers/soc/qcom/icnss.c @@ -718,6 +718,8 @@ static int icnss_qmi_event_fw_ready_ind(void *data) penv->state |= ICNSS_FW_READY; + pr_info("%s: WLAN FW is ready\n", __func__); + if (!penv->pdev) { pr_err("%s: Device is not ready\n", __func__); ret = -ENODEV; @@ -726,11 +728,8 @@ static int icnss_qmi_event_fw_ready_ind(void *data) icnss_adrastea_power_off(); - if (!penv->ops || !penv->ops->probe) { - pr_err("%s: WLAN driver is not registed yet\n", __func__); - ret = -ENOENT; + if (!penv->ops || !penv->ops->probe) goto out; - } ret = penv->ops->probe(&penv->pdev->dev); if (ret < 0) @@ -1422,7 +1421,7 @@ static int icnss_probe(struct platform_device *pdev) goto err_qmi; } - pr_debug("icnss: Platform driver probed successfully\n"); + pr_info("icnss: Platform driver probed successfully\n"); return ret;