qcacld-3.0: Reduce the log spam in wlan_hdd_driver_ops.c

Move the logs to appropriate log levels to reduce
the log spam in wlan_hdd_driver_ops.c

Change-Id: I5e57ac3a9af43cbe16b56a34fd33eaf570ced16e
CRs-Fixed: 2014745
This commit is contained in:
Srinivas Girigowda
2017-03-06 16:18:21 -08:00
committed by Sandeep Puligilla
parent 21534c73fa
commit 852c254495

View File

@@ -223,7 +223,7 @@ int hdd_hif_open(struct device *dev, void *bdev, const hif_bus_id *bid,
ret = hdd_init_cds_hif_context(hif_ctx);
if (ret) {
hdd_err("Failed to set global HIF CDS Context err:%d", ret);
hdd_err("Failed to set global HIF CDS Context err: %d", ret);
goto err_hif_close;
}
@@ -231,17 +231,17 @@ int hdd_hif_open(struct device *dev, void *bdev, const hif_bus_id *bid,
(reinit == true) ? HIF_ENABLE_TYPE_REINIT :
HIF_ENABLE_TYPE_PROBE);
if (!QDF_IS_STATUS_SUCCESS(status)) {
hdd_err("hif_enable error = %d, reinit = %d",
hdd_err("hif_enable failed status: %d, reinit: %d",
status, reinit);
ret = qdf_status_to_os_return(status);
goto err_hif_close;
} else {
ret = hdd_napi_create();
hdd_info("hdd_napi_create returned: %d", ret);
hdd_debug("hdd_napi_create returned: %d", ret);
if (ret == 0)
hdd_warn("NAPI: no instances are created");
else if (ret < 0) {
hdd_err("NAPI creation error, rc: 0x%x, reinit = %d",
hdd_err("NAPI creation error, rc: 0x%x, reinit: %d",
ret, reinit);
ret = -EFAULT;
goto err_hif_close;
@@ -391,7 +391,7 @@ static void wlan_hdd_remove(struct device *dev)
cds_set_unload_in_progress(true);
if (!cds_wait_for_external_threads_completion(__func__))
hdd_err("External threads are still active attempting driver unload anyway");
hdd_warn("External threads are still active attempting driver unload anyway");
hdd_pld_driver_unloading(dev);
@@ -602,7 +602,7 @@ static int __wlan_hdd_bus_suspend(struct wow_enable_params wow_params)
void *soc;
struct pmo_wow_enable_params pmo_params;
hdd_info("starting bus suspend");
hdd_debug("starting bus suspend");
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
err = wlan_hdd_validate_context(hdd_ctx);
@@ -612,7 +612,7 @@ static int __wlan_hdd_bus_suspend(struct wow_enable_params wow_params)
}
if (hdd_ctx->driver_status != DRIVER_MODULES_ENABLED) {
hdd_info("Driver Module closed; skipping suspend");
hdd_debug("Driver Module closed; skipping suspend");
return 0;
}
@@ -650,7 +650,7 @@ static int __wlan_hdd_bus_suspend(struct wow_enable_params wow_params)
goto resume_pmo;
}
hdd_info("bus suspend succeeded");
hdd_debug("bus suspend succeeded");
return 0;
resume_pmo:
@@ -715,7 +715,7 @@ static int __wlan_hdd_bus_suspend_noirq(void)
}
if (hdd_ctx->driver_status != DRIVER_MODULES_ENABLED) {
hdd_info("Driver Module closed return success");
hdd_debug("Driver Module closed return success");
return 0;
}
@@ -736,7 +736,7 @@ static int __wlan_hdd_bus_suspend_noirq(void)
hdd_ctx->suspend_resume_stats.suspends++;
hdd_info("suspend_noirq done");
hdd_debug("suspend_noirq done");
return 0;
resume_hif_noirq:
@@ -748,7 +748,7 @@ done:
wlan_hdd_inc_suspend_stats(hdd_ctx,
SUSPEND_FAIL_INITIAL_WAKEUP);
} else {
hdd_err("suspend_noirq failed, status = %d", err);
hdd_err("suspend_noirq failed, status: %d", err);
}
return err;
@@ -788,7 +788,7 @@ static int __wlan_hdd_bus_resume(void)
if (cds_is_driver_recovering())
return 0;
hdd_info("starting bus resume");
hdd_debug("starting bus resume");
status = wlan_hdd_validate_context(hdd_ctx);
if (status) {
@@ -797,7 +797,7 @@ static int __wlan_hdd_bus_resume(void)
}
if (hdd_ctx->driver_status != DRIVER_MODULES_ENABLED) {
hdd_info("Driver Module closed; return success");
hdd_debug("Driver Module closed; return success");
return 0;
}
@@ -828,7 +828,7 @@ static int __wlan_hdd_bus_resume(void)
goto out;
}
hdd_info("bus resume succeeded");
hdd_debug("bus resume succeeded");
return 0;
out:
@@ -877,7 +877,7 @@ static int __wlan_hdd_bus_resume_noirq(void)
}
if (hdd_ctx->driver_status != DRIVER_MODULES_ENABLED) {
hdd_info("Driver Module closed return success");
hdd_debug("Driver Module closed return success");
return 0;
}
@@ -891,7 +891,7 @@ static int __wlan_hdd_bus_resume_noirq(void)
status = hif_bus_resume_noirq(hif_ctx);
QDF_BUG(!status);
hdd_info("resume_noirq done");
hdd_debug("resume_noirq done");
return status;
}