qcacmn: Replace obsolete HIF_INFO() with hif_info()

Replace obsolete HIF_INFO() with hif_info().

Change-Id: I7fcf079551db5a69bd45b96b2126d1521c3e3e4c
CRs-Fixed: 2779720
This commit is contained in:
Srinivas Girigowda
2020-09-17 15:39:48 -07:00
committed by snandini
parent 94ea515d92
commit f327fcd404
16 changed files with 103 additions and 128 deletions

View File

@@ -1851,7 +1851,7 @@ void hif_enable_fastpath(struct hif_opaque_softc *hif_ctx)
struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
if (ce_srng_based(scn)) { if (ce_srng_based(scn)) {
HIF_INFO("%s, srng rings do not support fastpath", __func__); hif_warn("srng rings do not support fastpath");
return; return;
} }
HIF_DBG("%s, Enabling fastpath mode", __func__); HIF_DBG("%s, Enabling fastpath mode", __func__);

View File

@@ -807,7 +807,7 @@ static void ce_srng_dest_ring_setup(struct hif_softc *scn,
struct hal_srng_params ring_params = {0}; struct hal_srng_params ring_params = {0};
bool status_ring_timer_thresh_work_arround = true; bool status_ring_timer_thresh_work_arround = true;
HIF_INFO("%s: ce_id %d", __func__, ce_id); hif_debug("ce_id: %d", ce_id);
ring_params.ring_base_paddr = dest_ring->base_addr_CE_space; ring_params.ring_base_paddr = dest_ring->base_addr_CE_space;
ring_params.ring_base_vaddr = dest_ring->base_addr_owner_space; ring_params.ring_base_vaddr = dest_ring->base_addr_owner_space;
@@ -868,7 +868,7 @@ static void ce_srng_status_ring_setup(struct hif_softc *scn, uint32_t ce_id,
{ {
struct hal_srng_params ring_params = {0}; struct hal_srng_params ring_params = {0};
HIF_INFO("%s: ce_id %d", __func__, ce_id); hif_debug("ce_id: %d", ce_id);
ce_srng_msi_ring_params_setup(scn, ce_id, &ring_params); ce_srng_msi_ring_params_setup(scn, ce_id, &ring_params);

View File

@@ -470,7 +470,7 @@ int hif_drain_tasklets(struct hif_softc *scn)
return -EFAULT; return -EFAULT;
} }
HIF_INFO("%s: Waiting for CE to finish access", __func__); hif_info("Waiting for CE to finish access");
msleep(10); msleep(10);
} }
return 0; return 0;

View File

@@ -123,7 +123,7 @@ void hif_vote_link_down(struct hif_opaque_softc *hif_ctx)
QDF_BUG(scn); QDF_BUG(scn);
scn->linkstate_vote--; scn->linkstate_vote--;
HIF_INFO("Down_linkstate_vote %d", scn->linkstate_vote); hif_info("Down_linkstate_vote %d", scn->linkstate_vote);
if (scn->linkstate_vote == 0) if (scn->linkstate_vote == 0)
hif_bus_prevent_linkdown(scn, false); hif_bus_prevent_linkdown(scn, false);
} }
@@ -145,7 +145,7 @@ void hif_vote_link_up(struct hif_opaque_softc *hif_ctx)
QDF_BUG(scn); QDF_BUG(scn);
scn->linkstate_vote++; scn->linkstate_vote++;
HIF_INFO("Up_linkstate_vote %d", scn->linkstate_vote); hif_info("Up_linkstate_vote %d", scn->linkstate_vote);
if (scn->linkstate_vote == 1) if (scn->linkstate_vote == 1)
hif_bus_prevent_linkdown(scn, true); hif_bus_prevent_linkdown(scn, true);
} }
@@ -1104,56 +1104,56 @@ int hif_get_device_type(uint32_t device_id,
case AR9887_DEVICE_ID: case AR9887_DEVICE_ID:
*hif_type = HIF_TYPE_AR9888; *hif_type = HIF_TYPE_AR9888;
*target_type = TARGET_TYPE_AR9888; *target_type = TARGET_TYPE_AR9888;
HIF_INFO(" *********** AR9887 **************"); hif_info(" *********** AR9887 **************");
break; break;
case QCA9984_DEVICE_ID: case QCA9984_DEVICE_ID:
*hif_type = HIF_TYPE_QCA9984; *hif_type = HIF_TYPE_QCA9984;
*target_type = TARGET_TYPE_QCA9984; *target_type = TARGET_TYPE_QCA9984;
HIF_INFO(" *********** QCA9984 *************"); hif_info(" *********** QCA9984 *************");
break; break;
case QCA9888_DEVICE_ID: case QCA9888_DEVICE_ID:
*hif_type = HIF_TYPE_QCA9888; *hif_type = HIF_TYPE_QCA9888;
*target_type = TARGET_TYPE_QCA9888; *target_type = TARGET_TYPE_QCA9888;
HIF_INFO(" *********** QCA9888 *************"); hif_info(" *********** QCA9888 *************");
break; break;
case AR900B_DEVICE_ID: case AR900B_DEVICE_ID:
*hif_type = HIF_TYPE_AR900B; *hif_type = HIF_TYPE_AR900B;
*target_type = TARGET_TYPE_AR900B; *target_type = TARGET_TYPE_AR900B;
HIF_INFO(" *********** AR900B *************"); hif_info(" *********** AR900B *************");
break; break;
case IPQ4019_DEVICE_ID: case IPQ4019_DEVICE_ID:
*hif_type = HIF_TYPE_IPQ4019; *hif_type = HIF_TYPE_IPQ4019;
*target_type = TARGET_TYPE_IPQ4019; *target_type = TARGET_TYPE_IPQ4019;
HIF_INFO(" *********** IPQ4019 *************"); hif_info(" *********** IPQ4019 *************");
break; break;
case QCA8074_DEVICE_ID: case QCA8074_DEVICE_ID:
*hif_type = HIF_TYPE_QCA8074; *hif_type = HIF_TYPE_QCA8074;
*target_type = TARGET_TYPE_QCA8074; *target_type = TARGET_TYPE_QCA8074;
HIF_INFO(" *********** QCA8074 *************\n"); hif_info(" *********** QCA8074 *************");
break; break;
case QCA6290_EMULATION_DEVICE_ID: case QCA6290_EMULATION_DEVICE_ID:
case QCA6290_DEVICE_ID: case QCA6290_DEVICE_ID:
*hif_type = HIF_TYPE_QCA6290; *hif_type = HIF_TYPE_QCA6290;
*target_type = TARGET_TYPE_QCA6290; *target_type = TARGET_TYPE_QCA6290;
HIF_INFO(" *********** QCA6290EMU *************\n"); hif_info(" *********** QCA6290EMU *************");
break; break;
case QCN9000_DEVICE_ID: case QCN9000_DEVICE_ID:
*hif_type = HIF_TYPE_QCN9000; *hif_type = HIF_TYPE_QCN9000;
*target_type = TARGET_TYPE_QCN9000; *target_type = TARGET_TYPE_QCN9000;
HIF_INFO(" *********** QCN9000 *************\n"); hif_info(" *********** QCN9000 *************");
break; break;
case QCN9100_DEVICE_ID: case QCN9100_DEVICE_ID:
*hif_type = HIF_TYPE_QCN9100; *hif_type = HIF_TYPE_QCN9100;
*target_type = TARGET_TYPE_QCN9100; *target_type = TARGET_TYPE_QCN9100;
HIF_INFO(" *********** QCN9100 *************\n"); hif_info(" *********** QCN9100 *************");
break; break;
case QCN7605_DEVICE_ID: case QCN7605_DEVICE_ID:
@@ -1163,34 +1163,34 @@ int hif_get_device_type(uint32_t device_id,
case QCN7605_COMPOSITE_V2: case QCN7605_COMPOSITE_V2:
*hif_type = HIF_TYPE_QCN7605; *hif_type = HIF_TYPE_QCN7605;
*target_type = TARGET_TYPE_QCN7605; *target_type = TARGET_TYPE_QCN7605;
HIF_INFO(" *********** QCN7605 *************\n"); hif_info(" *********** QCN7605 *************");
break; break;
case QCA6390_DEVICE_ID: case QCA6390_DEVICE_ID:
case QCA6390_EMULATION_DEVICE_ID: case QCA6390_EMULATION_DEVICE_ID:
*hif_type = HIF_TYPE_QCA6390; *hif_type = HIF_TYPE_QCA6390;
*target_type = TARGET_TYPE_QCA6390; *target_type = TARGET_TYPE_QCA6390;
HIF_INFO(" *********** QCA6390 *************\n"); hif_info(" *********** QCA6390 *************");
break; break;
case QCA6490_DEVICE_ID: case QCA6490_DEVICE_ID:
case QCA6490_EMULATION_DEVICE_ID: case QCA6490_EMULATION_DEVICE_ID:
*hif_type = HIF_TYPE_QCA6490; *hif_type = HIF_TYPE_QCA6490;
*target_type = TARGET_TYPE_QCA6490; *target_type = TARGET_TYPE_QCA6490;
HIF_INFO(" *********** QCA6490 *************\n"); hif_info(" *********** QCA6490 *************");
break; break;
case QCA6750_DEVICE_ID: case QCA6750_DEVICE_ID:
case QCA6750_EMULATION_DEVICE_ID: case QCA6750_EMULATION_DEVICE_ID:
*hif_type = HIF_TYPE_QCA6750; *hif_type = HIF_TYPE_QCA6750;
*target_type = TARGET_TYPE_QCA6750; *target_type = TARGET_TYPE_QCA6750;
HIF_INFO(" *********** QCA6750 *************\n"); hif_info(" *********** QCA6750 *************");
break; break;
case QCA8074V2_DEVICE_ID: case QCA8074V2_DEVICE_ID:
*hif_type = HIF_TYPE_QCA8074V2; *hif_type = HIF_TYPE_QCA8074V2;
*target_type = TARGET_TYPE_QCA8074V2; *target_type = TARGET_TYPE_QCA8074V2;
HIF_INFO(" *********** QCA8074V2 *************\n"); hif_info(" *********** QCA8074V2 *************");
break; break;
case QCA6018_DEVICE_ID: case QCA6018_DEVICE_ID:
@@ -1202,13 +1202,13 @@ int hif_get_device_type(uint32_t device_id,
case RUMIM2M_DEVICE_ID_NODE5: case RUMIM2M_DEVICE_ID_NODE5:
*hif_type = HIF_TYPE_QCA6018; *hif_type = HIF_TYPE_QCA6018;
*target_type = TARGET_TYPE_QCA6018; *target_type = TARGET_TYPE_QCA6018;
HIF_INFO(" *********** QCA6018 *************\n"); hif_info(" *********** QCA6018 *************");
break; break;
case QCA5018_DEVICE_ID: case QCA5018_DEVICE_ID:
*hif_type = HIF_TYPE_QCA5018; *hif_type = HIF_TYPE_QCA5018;
*target_type = TARGET_TYPE_QCA5018; *target_type = TARGET_TYPE_QCA5018;
HIF_INFO(" *********** qca5018 *************\n"); hif_info(" *********** qca5018 *************");
break; break;
default: default:
@@ -1691,7 +1691,7 @@ irqreturn_t hif_wake_interrupt_handler(int irq, void *context)
struct hif_softc *scn = context; struct hif_softc *scn = context;
struct hif_opaque_softc *hif_ctx = GET_HIF_OPAQUE_HDL(scn); struct hif_opaque_softc *hif_ctx = GET_HIF_OPAQUE_HDL(scn);
HIF_INFO("wake interrupt received on irq %d", irq); hif_info("wake interrupt received on irq %d", irq);
if (hif_pm_runtime_get_monitor_wake_intr(hif_ctx)) { if (hif_pm_runtime_get_monitor_wake_intr(hif_ctx)) {
hif_pm_runtime_set_monitor_wake_intr(hif_ctx, 0); hif_pm_runtime_set_monitor_wake_intr(hif_ctx, 0);

View File

@@ -374,14 +374,13 @@ void hif_pm_runtime_start(struct hif_softc *scn)
struct hif_runtime_pm_ctx *rpm_ctx = hif_bus_get_rpm_ctx(scn); struct hif_runtime_pm_ctx *rpm_ctx = hif_bus_get_rpm_ctx(scn);
if (!scn->hif_config.enable_runtime_pm) { if (!scn->hif_config.enable_runtime_pm) {
HIF_INFO("%s: RUNTIME PM is disabled in ini\n", __func__); hif_info("RUNTIME PM is disabled in ini");
return; return;
} }
if (mode == QDF_GLOBAL_FTM_MODE || QDF_IS_EPPING_ENABLED(mode) || if (mode == QDF_GLOBAL_FTM_MODE || QDF_IS_EPPING_ENABLED(mode) ||
mode == QDF_GLOBAL_MONITOR_MODE) { mode == QDF_GLOBAL_MONITOR_MODE) {
HIF_INFO("%s: RUNTIME PM is disabled for FTM/EPPING mode\n", hif_info("RUNTIME PM is disabled for FTM/EPPING mode");
__func__);
return; return;
} }
@@ -389,7 +388,7 @@ void hif_pm_runtime_start(struct hif_softc *scn)
hif_pm_runtime_lock_timeout_fn, hif_pm_runtime_lock_timeout_fn,
scn, QDF_TIMER_TYPE_WAKE_APPS); scn, QDF_TIMER_TYPE_WAKE_APPS);
HIF_INFO("%s: Enabling RUNTIME PM, Delay: %d ms", __func__, hif_info("Enabling RUNTIME PM, Delay: %d ms",
scn->hif_config.runtime_pm_delay); scn->hif_config.runtime_pm_delay);
qdf_atomic_set(&rpm_ctx->pm_state, HIF_PM_RUNTIME_STATE_ON); qdf_atomic_set(&rpm_ctx->pm_state, HIF_PM_RUNTIME_STATE_ON);
@@ -581,7 +580,7 @@ int hif_pm_runtime_sync_resume(struct hif_opaque_softc *hif_ctx)
pm_state = qdf_atomic_read(&rpm_ctx->pm_state); pm_state = qdf_atomic_read(&rpm_ctx->pm_state);
if (pm_state == HIF_PM_RUNTIME_STATE_SUSPENDED || if (pm_state == HIF_PM_RUNTIME_STATE_SUSPENDED ||
pm_state == HIF_PM_RUNTIME_STATE_SUSPENDING) pm_state == HIF_PM_RUNTIME_STATE_SUSPENDING)
HIF_INFO("Runtime PM resume is requested by %ps", hif_info("Runtime PM resume is requested by %ps",
(void *)_RET_IP_); (void *)_RET_IP_);
rpm_ctx->pm_stats.request_resume++; rpm_ctx->pm_stats.request_resume++;
@@ -1051,7 +1050,7 @@ int hif_pm_runtime_request_resume(struct hif_opaque_softc *hif_ctx)
pm_state = qdf_atomic_read(&rpm_ctx->pm_state); pm_state = qdf_atomic_read(&rpm_ctx->pm_state);
if (pm_state == HIF_PM_RUNTIME_STATE_SUSPENDED || if (pm_state == HIF_PM_RUNTIME_STATE_SUSPENDED ||
pm_state == HIF_PM_RUNTIME_STATE_SUSPENDING) pm_state == HIF_PM_RUNTIME_STATE_SUSPENDING)
HIF_INFO("Runtime PM resume is requested by %ps", hif_info("Runtime PM resume is requested by %ps",
(void *)_RET_IP_); (void *)_RET_IP_);
rpm_ctx->pm_stats.request_resume++; rpm_ctx->pm_stats.request_resume++;
@@ -1532,7 +1531,7 @@ int hif_runtime_lock_init(qdf_runtime_lock_t *lock, const char *name)
{ {
struct hif_pm_runtime_lock *context; struct hif_pm_runtime_lock *context;
HIF_INFO("Initializing Runtime PM wakelock %s", name); hif_info("Initializing Runtime PM wakelock %s", name);
context = qdf_mem_malloc(sizeof(*context)); context = qdf_mem_malloc(sizeof(*context));
if (!context) if (!context)
@@ -1562,7 +1561,7 @@ void hif_runtime_lock_deinit(struct hif_opaque_softc *hif_ctx,
return; return;
} }
HIF_INFO("Deinitializing Runtime PM wakelock %s", context->name); hif_info("Deinitializing Runtime PM wakelock %s", context->name);
/* /*
* Ensure to delete the context list entry and reduce the usage count * Ensure to delete the context list entry and reduce the usage count

View File

@@ -151,7 +151,7 @@ int hif_ipci_bus_configure(struct hif_softc *hif_sc)
hif_sc->wake_irq = hif_ce_msi_map_ce_to_irq(hif_sc, wake_ce_id); hif_sc->wake_irq = hif_ce_msi_map_ce_to_irq(hif_sc, wake_ce_id);
HIF_INFO("expecting wake from ce %d, irq %d", hif_info("expecting wake from ce %d, irq %d",
wake_ce_id, hif_sc->wake_irq); wake_ce_id, hif_sc->wake_irq);
A_TARGET_ACCESS_UNLIKELY(hif_sc); A_TARGET_ACCESS_UNLIKELY(hif_sc);
@@ -284,7 +284,7 @@ void hif_ipci_disable_bus(struct hif_softc *scn)
} }
scn->mem = NULL; scn->mem = NULL;
} }
HIF_INFO("%s: X", __func__); hif_info("X");
} }
#if defined(CONFIG_PCI_MSM) #if defined(CONFIG_PCI_MSM)
@@ -292,7 +292,7 @@ void hif_ipci_prevent_linkdown(struct hif_softc *scn, bool flag)
{ {
int errno; int errno;
HIF_INFO("wlan: %s pcie power collapse", flag ? "disable" : "enable"); hif_info("wlan: %s pcie power collapse", flag ? "disable" : "enable");
hif_runtime_prevent_linkdown(scn, flag); hif_runtime_prevent_linkdown(scn, flag);
errno = pld_wlan_pm_control(scn->qdf_dev->dev, flag); errno = pld_wlan_pm_control(scn->qdf_dev->dev, flag);
@@ -302,7 +302,7 @@ void hif_ipci_prevent_linkdown(struct hif_softc *scn, bool flag)
#else #else
void hif_ipci_prevent_linkdown(struct hif_softc *scn, bool flag) void hif_ipci_prevent_linkdown(struct hif_softc *scn, bool flag)
{ {
HIF_INFO("wlan: %s pcie power collapse", (flag ? "disable" : "enable")); hif_info("wlan: %s pcie power collapse", (flag ? "disable" : "enable"));
hif_runtime_prevent_linkdown(scn, flag); hif_runtime_prevent_linkdown(scn, flag);
} }
#endif #endif

View File

@@ -1057,7 +1057,7 @@ void hif_pci_enable_power_management(struct hif_softc *hif_sc,
mode = hif_get_conparam(hif_sc); mode = hif_get_conparam(hif_sc);
if (mode == QDF_GLOBAL_FTM_MODE) { if (mode == QDF_GLOBAL_FTM_MODE) {
HIF_INFO("%s: Enable power gating for FTM mode", __func__); hif_info("Enable power gating for FTM mode");
hif_enable_power_gating(pci_ctx); hif_enable_power_gating(pci_ctx);
return; return;
} }
@@ -1857,7 +1857,7 @@ static int hif_enable_pci_nopld(struct hif_pci_softc *sc,
goto err_iomap; goto err_iomap;
} }
HIF_INFO("*****BAR is %pK\n", (void *)mem); hif_info("*****BAR is %pK", (void *)mem);
sc->mem = mem; sc->mem = mem;
@@ -1870,8 +1870,7 @@ static int hif_enable_pci_nopld(struct hif_pci_softc *sc,
(device_id == RUMIM2M_DEVICE_ID_NODE5)) { (device_id == RUMIM2M_DEVICE_ID_NODE5)) {
mem = mem + 0x0c000000; mem = mem + 0x0c000000;
sc->mem = mem; sc->mem = mem;
HIF_INFO("%s: Changing PCI mem base to %pK\n", hif_info("Changing PCI mem base to %pK", sc->mem);
__func__, sc->mem);
} }
sc->mem_len = pci_resource_len(pdev, BAR_NUM); sc->mem_len = pci_resource_len(pdev, BAR_NUM);
@@ -2211,7 +2210,7 @@ void hif_pci_disable_bus(struct hif_softc *scn)
sc->hif_pci_deinit(sc); sc->hif_pci_deinit(sc);
scn->mem = NULL; scn->mem = NULL;
} }
HIF_INFO("%s: X", __func__); hif_info("X");
} }
#ifdef FEATURE_RUNTIME_PM #ifdef FEATURE_RUNTIME_PM
@@ -2264,7 +2263,7 @@ void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag)
{ {
int errno; int errno;
HIF_INFO("wlan: %s pcie power collapse", flag ? "disable" : "enable"); hif_info("wlan: %s pcie power collapse", flag ? "disable" : "enable");
hif_runtime_prevent_linkdown(scn, flag); hif_runtime_prevent_linkdown(scn, flag);
errno = pld_wlan_pm_control(scn->qdf_dev->dev, flag); errno = pld_wlan_pm_control(scn->qdf_dev->dev, flag);
@@ -2274,7 +2273,7 @@ void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag)
#else #else
void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag) void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag)
{ {
HIF_INFO("wlan: %s pcie power collapse", (flag ? "disable" : "enable")); hif_info("wlan: %s pcie power collapse", (flag ? "disable" : "enable"));
hif_runtime_prevent_linkdown(scn, flag); hif_runtime_prevent_linkdown(scn, flag);
} }
#endif #endif
@@ -3442,7 +3441,7 @@ err_enable_pci:
if (probe_again && (probe_again <= ATH_PCI_PROBE_RETRY_MAX)) { if (probe_again && (probe_again <= ATH_PCI_PROBE_RETRY_MAX)) {
int delay_time; int delay_time;
HIF_INFO("%s: pci reprobe", __func__); hif_info("pci reprobe");
/* 10, 40, 90, 100, 100, ... */ /* 10, 40, 90, 100, 100, ... */
delay_time = max(100, 10 * (probe_again * probe_again)); delay_time = max(100, 10 * (probe_again * probe_again));
qdf_mdelay(delay_time); qdf_mdelay(delay_time);
@@ -3582,7 +3581,7 @@ int hif_force_wake_request(struct hif_opaque_softc *hif_handle)
* without entering low power state. * without entering low power state.
*/ */
if (!pld_is_device_awake(scn->qdf_dev->dev)) if (!pld_is_device_awake(scn->qdf_dev->dev))
HIF_INFO("%s: state-change event races, ignore", __func__); hif_info("state-change event races, ignore");
HIF_STATS_INC(pci_scn, mhi_force_wake_success, 1); HIF_STATS_INC(pci_scn, mhi_force_wake_success, 1);
hif_write32_mb(scn, hif_write32_mb(scn,
@@ -3651,7 +3650,7 @@ int hif_force_wake_request(struct hif_opaque_softc *hif_handle)
* without entering low power state. * without entering low power state.
*/ */
if (!pld_is_device_awake(scn->qdf_dev->dev)) if (!pld_is_device_awake(scn->qdf_dev->dev))
HIF_INFO("%s: state-change event races, ignore", __func__); hif_info("state-change event races, ignore");
HIF_STATS_INC(pci_scn, mhi_force_wake_success, 1); HIF_STATS_INC(pci_scn, mhi_force_wake_success, 1);

View File

@@ -273,7 +273,7 @@ int hif_check_fw_reg(struct hif_opaque_softc *hif_ctx)
hif_err("Get fw indication failed"); hif_err("Get fw indication failed");
return 1; return 1;
} }
HIF_INFO("%s: fw indication is 0x%x def 0x%x.\n", __func__, hif_info("fw indication is 0x%x def 0x%x",
fw_indication, FW_IND_HELPER); fw_indication, FW_IND_HELPER);
if (fw_indication & FW_IND_HELPER) if (fw_indication & FW_IND_HELPER)
ret = 0; ret = 0;

View File

@@ -266,8 +266,7 @@ void hif_sdio_quirk_write_cccr(struct hif_softc *ol_sc, struct sdio_func *func)
(unsigned int)writecccr1value, (unsigned int)writecccr1value,
err); err);
else else
HIF_INFO("%s Write CCCR 0x%02X to 0x%02X OK\n", hif_info("%s Write CCCR 0x%02X to 0x%02X OK",
__func__,
(unsigned int)writecccr1, (unsigned int)writecccr1,
writecccr1value); writecccr1value);
} }
@@ -281,8 +280,7 @@ void hif_sdio_quirk_write_cccr(struct hif_softc *ol_sc, struct sdio_func *func)
(unsigned int)writecccr2value, (unsigned int)writecccr2value,
err); err);
else else
HIF_INFO("%s Write CCCR 0x%02X to 0x%02X OK\n", hif_info("%s Write CCCR 0x%02X to 0x%02X OK",
__func__,
(unsigned int)writecccr2, (unsigned int)writecccr2,
(unsigned int)writecccr2value); (unsigned int)writecccr2value);
} }
@@ -295,8 +293,7 @@ void hif_sdio_quirk_write_cccr(struct hif_softc *ol_sc, struct sdio_func *func)
(unsigned int)writecccr3value, (unsigned int)writecccr3value,
err); err);
else else
HIF_INFO("%s Write CCCR 0x%02X to 0x%02X OK\n", hif_info("%s Write CCCR 0x%02X to 0x%02X OK",
__func__,
(unsigned int)writecccr3, (unsigned int)writecccr3,
(unsigned int)writecccr3value); (unsigned int)writecccr3value);
} }
@@ -309,8 +306,7 @@ void hif_sdio_quirk_write_cccr(struct hif_softc *ol_sc, struct sdio_func *func)
(unsigned int)writecccr4value, (unsigned int)writecccr4value,
err); err);
else else
HIF_INFO("%s Write CCCR 0x%02X to 0x%02X OK\n", hif_info("%s Write CCCR 0x%02X to 0x%02X OK",
__func__,
(unsigned int)writecccr4, (unsigned int)writecccr4,
(unsigned int)writecccr4value); (unsigned int)writecccr4value);
} }
@@ -357,7 +353,7 @@ int hif_sdio_quirk_mod_strength(struct hif_softc *ol_sc, struct sdio_func *func)
hif_err("write 0x%x 0x%x error:%d", addr, value, ret); hif_err("write 0x%x 0x%x error:%d", addr, value, ret);
break; break;
} }
HIF_INFO("%s: addr 0x%x val 0x%x", __func__, addr, value); hif_info("addr 0x%x val 0x%x", addr, value);
addr = WINDOW_WRITE_ADDR_ADDRESS; addr = WINDOW_WRITE_ADDR_ADDRESS;
value = 0x50F8; value = 0x50F8;
@@ -366,7 +362,7 @@ int hif_sdio_quirk_mod_strength(struct hif_softc *ol_sc, struct sdio_func *func)
hif_err("write 0x%x 0x%x error:%d", addr, value, ret); hif_err("write 0x%x 0x%x error:%d", addr, value, ret);
break; break;
} }
HIF_INFO("%s: addr 0x%x val 0x%x\n", __func__, addr, value); hif_info("addr 0x%x val 0x%x", addr, value);
break; break;
} }
@@ -422,13 +418,12 @@ QDF_STATUS hif_sdio_set_bus_speed(struct hif_softc *ol_sc,
if (clock > device->host->f_max) if (clock > device->host->f_max)
clock = device->host->f_max; clock = device->host->f_max;
HIF_INFO("%s: Clock setting: (%d,%d)\n", __func__, hif_info("Clock setting: (%d,%d)",
func->card->cis.max_dtr, device->host->f_max); func->card->cis.max_dtr, device->host->f_max);
/* Limit clock if specified */ /* Limit clock if specified */
if (mmcclock > 0) { if (mmcclock > 0) {
HIF_INFO("%s: Limit clock from %d to %d\n", hif_info("Limit clock from %d to %d", clock, clock_set);
__func__, clock, clock_set);
device->host->ios.clock = clock_set; device->host->ios.clock = clock_set;
device->host->ops->set_ios(device->host, device->host->ops->set_ios(device->host,
&device->host->ios); &device->host->ios);
@@ -501,7 +496,7 @@ QDF_STATUS hif_sdio_set_bus_width(struct hif_softc *ol_sc,
status = qdf_status_from_os_return(ret); status = qdf_status_from_os_return(ret);
out: out:
HIF_INFO("%s: Bus with : %d\n", __func__, mmcbuswidth); hif_debug("Bus width: %d", mmcbuswidth);
#endif #endif
return status; return status;
} }
@@ -584,7 +579,7 @@ void hif_un_mask_interrupt(struct hif_sdio_dev *device)
* instead of interrupt mode. * instead of interrupt mode.
*/ */
if (brokenirq) { if (brokenirq) {
HIF_INFO("%s: Using broken IRQ mode", __func__); hif_info("Using broken IRQ mode");
device->func->card->host->caps &= ~MMC_CAP_SDIO_IRQ; device->func->card->host->caps &= ~MMC_CAP_SDIO_IRQ;
} }
/* Register the IRQ Handler */ /* Register the IRQ Handler */

View File

@@ -352,7 +352,7 @@ QDF_STATUS hif_sdio_probe(struct hif_softc *ol_sc,
scn->ramdump_base ? "ok" : "null", scn->ramdump_base ? "ok" : "null",
scn->ramdump_size); scn->ramdump_size);
} else { } else {
HIF_INFO("%s: ramdump base %pK size %lu", __func__, hif_info("ramdump base %pK size %lu",
scn->ramdump_base, scn->ramdump_size); scn->ramdump_base, scn->ramdump_size);
} }
@@ -577,8 +577,8 @@ static QDF_STATUS hif_device_inserted(struct hif_softc *ol_sc,
QDF_STATUS ret = QDF_STATUS_SUCCESS; QDF_STATUS ret = QDF_STATUS_SUCCESS;
struct hif_sdio_dev *device = NULL; struct hif_sdio_dev *device = NULL;
HIF_INFO("%s: F%X, VID: 0x%X, DevID: 0x%X, block size: 0x%X/0x%X\n", hif_info("F%X, VID: 0x%X, DevID: 0x%X, block size: 0x%X/0x%X",
__func__, func->num, func->vendor, id->device, func->num, func->vendor, id->device,
func->max_blksize, func->cur_blksize); func->max_blksize, func->cur_blksize);
/* dma_mask should be populated here. Use the parent device's setting */ /* dma_mask should be populated here. Use the parent device's setting */
@@ -596,7 +596,7 @@ static QDF_STATUS hif_device_inserted(struct hif_softc *ol_sc,
hif_sdio_set_drvdata(ol_sc, func, hifdevice); hif_sdio_set_drvdata(ol_sc, func, hifdevice);
if (device->is_suspend) { if (device->is_suspend) {
HIF_INFO("%s: Resume from suspend", __func__); hif_info("Resume from suspend");
ret = reinit_sdio(device); ret = reinit_sdio(device);
} }
break; break;
@@ -797,7 +797,7 @@ int hif_device_suspend(struct hif_softc *ol_sc, struct device *dev)
/* setting power_config before hif_configure_device to /* setting power_config before hif_configure_device to
* skip sdio r/w when suspending with cut power * skip sdio r/w when suspending with cut power
*/ */
HIF_INFO("%s: Power cut", __func__); hif_info("Power cut");
config = HIF_DEVICE_POWER_CUT; config = HIF_DEVICE_POWER_CUT;
device->power_config = config; device->power_config = config;
@@ -816,7 +816,7 @@ int hif_device_suspend(struct hif_softc *ol_sc, struct device *dev)
} }
if (pm_flag & MMC_PM_WAKE_SDIO_IRQ) { if (pm_flag & MMC_PM_WAKE_SDIO_IRQ) {
HIF_INFO("%s: WOW mode ", __func__); hif_info("WOW mode");
config = HIF_DEVICE_POWER_DOWN; config = HIF_DEVICE_POWER_DOWN;
hif_configure_device(ol_sc, device, hif_configure_device(ol_sc, device,
HIF_DEVICE_POWER_STATE_CHANGE, HIF_DEVICE_POWER_STATE_CHANGE,
@@ -831,7 +831,7 @@ int hif_device_suspend(struct hif_softc *ol_sc, struct device *dev)
device->device_state = HIF_DEVICE_STATE_WOW; device->device_state = HIF_DEVICE_STATE_WOW;
return 0; return 0;
} else { } else {
HIF_INFO("%s: deep sleep enter", __func__); hif_info("deep sleep enter");
msleep(100); msleep(100);
hif_mask_interrupt(device); hif_mask_interrupt(device);
device->device_state = HIF_DEVICE_STATE_DEEPSLEEP; device->device_state = HIF_DEVICE_STATE_DEEPSLEEP;
@@ -967,7 +967,7 @@ static struct hif_sdio_dev *add_hif_device(struct hif_softc *ol_sc,
hifdevice->power_config = HIF_DEVICE_POWER_UP; hifdevice->power_config = HIF_DEVICE_POWER_UP;
hifdevice->device_state = HIF_DEVICE_STATE_ON; hifdevice->device_state = HIF_DEVICE_STATE_ON;
ret = hif_sdio_set_drvdata(ol_sc, func, hifdevice); ret = hif_sdio_set_drvdata(ol_sc, func, hifdevice);
HIF_INFO("status %d", ret); hif_info("status %d", ret);
return hifdevice; return hifdevice;
} }

View File

@@ -235,8 +235,7 @@ uint8_t pipeid
uint8_t hif_dev_map_adma_chan_to_pipe(struct hif_sdio_device *pdev, uint8_t hif_dev_map_adma_chan_to_pipe(struct hif_sdio_device *pdev,
uint8_t chan, bool upload) uint8_t chan, bool upload)
{ {
HIF_INFO("%s: chan: %u, %s", __func__, chan, hif_info("chan: %u, %s", chan, upload ? "Upload" : "Download");
upload ? "Upload" : "Download");
if (chan == 0) /* chan 0 is mapped to HTT */ if (chan == 0) /* chan 0 is mapped to HTT */
return upload ? 1 : 0; return upload ? 1 : 0;
@@ -523,7 +522,7 @@ int hif_dev_register_channels(struct hif_sdio_dev *dev, struct sdio_func *func)
hif_err("Channel registration failed"); hif_err("Channel registration failed");
} else { } else {
dev->al_chan[chan]->priv = (void *)dev; dev->al_chan[chan]->priv = (void *)dev;
HIF_INFO("%s: chan %s : id : %u", __func__, hif_info("chan %s : id : %u",
chan_data[chan]->name, chan_data[chan]->name,
dev->al_chan[chan]->channel_id); dev->al_chan[chan]->channel_id);
} }
@@ -598,7 +597,7 @@ hif_read_write(struct hif_sdio_dev *dev,
/*sdio r/w action is not needed when suspend, so just return */ /*sdio r/w action is not needed when suspend, so just return */
if ((dev->is_suspend) && if ((dev->is_suspend) &&
(dev->power_config == HIF_DEVICE_POWER_CUT)) { (dev->power_config == HIF_DEVICE_POWER_CUT)) {
HIF_INFO("%s: skip in suspend", __func__); hif_info("skip in suspend");
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }

View File

@@ -489,8 +489,7 @@ void hif_ahb_disable_bus(struct hif_softc *scn)
(struct qdf_pfm_hndl *)pdev, &vmres, (struct qdf_pfm_hndl *)pdev, &vmres,
IORESOURCE_MEM, 0); IORESOURCE_MEM, 0);
if (QDF_IS_STATUS_ERROR(status)) { if (QDF_IS_STATUS_ERROR(status)) {
HIF_INFO("%s: Failed to get IORESOURCE_MEM\n", hif_info("Failed to get IORESOURCE_MEM");
__func__);
return; return;
} }
memres = (struct resource *)vmres; memres = (struct resource *)vmres;
@@ -573,14 +572,12 @@ QDF_STATUS hif_ahb_enable_bus(struct hif_softc *ol_sc,
&vmres, &vmres,
IORESOURCE_MEM, 0); IORESOURCE_MEM, 0);
if (QDF_IS_STATUS_ERROR(status)) { if (QDF_IS_STATUS_ERROR(status)) {
HIF_INFO("%s: Failed to get IORESOURCE_MEM\n", hif_err("Failed to get IORESOURCE_MEM");
__func__);
return status; return status;
} }
memres = (struct resource *)vmres; memres = (struct resource *)vmres;
if (!memres) { if (!memres) {
HIF_INFO("%s: Failed to get IORESOURCE_MEM\n", hif_err("Failed to get IORESOURCE_MEM");
__func__);
return QDF_STATUS_E_IO; return QDF_STATUS_E_IO;
} }
@@ -597,7 +594,7 @@ QDF_STATUS hif_ahb_enable_bus(struct hif_softc *ol_sc,
&mem); &mem);
#endif #endif
if (QDF_IS_STATUS_ERROR(status)) { if (QDF_IS_STATUS_ERROR(status)) {
HIF_INFO("ath: ioremap error\n"); hif_err("ath: ioremap error");
ret = PTR_ERR(mem); ret = PTR_ERR(mem);
goto err_cleanup1; goto err_cleanup1;
} }
@@ -609,7 +606,7 @@ QDF_STATUS hif_ahb_enable_bus(struct hif_softc *ol_sc,
ret = pfrm_dma_set_mask(dev, 32); ret = pfrm_dma_set_mask(dev, 32);
if (ret) { if (ret) {
HIF_INFO("ath: 32-bit DMA not available\n"); hif_err("ath: 32-bit DMA not available");
status = QDF_STATUS_E_IO; status = QDF_STATUS_E_IO;
goto err_cleanup1; goto err_cleanup1;
} }
@@ -638,7 +635,7 @@ QDF_STATUS hif_ahb_enable_bus(struct hif_softc *ol_sc,
sc->mem_ce = ioremap_nocache(HOST_CE_ADDRESS, HOST_CE_SIZE); sc->mem_ce = ioremap_nocache(HOST_CE_ADDRESS, HOST_CE_SIZE);
if (IS_ERR(sc->mem_ce)) { if (IS_ERR(sc->mem_ce)) {
HIF_INFO("CE: ioremap failed\n"); hif_err("CE: ioremap failed");
return QDF_STATUS_E_IO; return QDF_STATUS_E_IO;
} }
ol_sc->mem_ce = sc->mem_ce; ol_sc->mem_ce = sc->mem_ce;
@@ -650,7 +647,7 @@ QDF_STATUS hif_ahb_enable_bus(struct hif_softc *ol_sc,
(tgt_info->target_type != TARGET_TYPE_QCN9100) && (tgt_info->target_type != TARGET_TYPE_QCN9100) &&
(tgt_info->target_type != TARGET_TYPE_QCA6018)) { (tgt_info->target_type != TARGET_TYPE_QCA6018)) {
if (hif_ahb_enable_radio(sc, pdev, id) != 0) { if (hif_ahb_enable_radio(sc, pdev, id) != 0) {
HIF_INFO("error in enabling soc\n"); hif_err("error in enabling soc");
return QDF_STATUS_E_IO; return QDF_STATUS_E_IO;
} }
@@ -669,7 +666,7 @@ err_target_sync:
(tgt_info->target_type != TARGET_TYPE_QCN9100) && (tgt_info->target_type != TARGET_TYPE_QCN9100) &&
(tgt_info->target_type != TARGET_TYPE_QCA5018) && (tgt_info->target_type != TARGET_TYPE_QCA5018) &&
(tgt_info->target_type != TARGET_TYPE_QCA6018)) { (tgt_info->target_type != TARGET_TYPE_QCA6018)) {
HIF_INFO("Error: Disabling target\n"); hif_err("Disabling target");
hif_ahb_disable_bus(ol_sc); hif_ahb_disable_bus(ol_sc);
} }
err_cleanup1: err_cleanup1:

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved. * Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -65,8 +65,7 @@ static int clk_enable_disable(struct device *dev, const char *str, int enable)
clk_t = clk_get(dev, str); clk_t = clk_get(dev, str);
if (IS_ERR(clk_t)) { if (IS_ERR(clk_t)) {
HIF_INFO("%s: Failed to get %s clk %ld\n", hif_err("Failed to get %s clk %ld", str, PTR_ERR(clk_t));
__func__, str, PTR_ERR(clk_t));
return -EFAULT; return -EFAULT;
} }
if (true == enable) { if (true == enable) {
@@ -74,8 +73,7 @@ static int clk_enable_disable(struct device *dev, const char *str, int enable)
status = qal_vbus_enable_devclk((struct qdf_dev_clk *)clk_t); status = qal_vbus_enable_devclk((struct qdf_dev_clk *)clk_t);
ret = qdf_status_to_os_return(status); ret = qdf_status_to_os_return(status);
if (ret) { if (ret) {
HIF_INFO("%s: err enabling clk %s , error:%d\n", hif_err("enabling clk: %s, error: %d", str, ret);
__func__, str, ret);
} }
} else { } else {
/* Disable and unprepare clk */ /* Disable and unprepare clk */
@@ -136,20 +134,17 @@ int hif_ahb_enable_radio(struct hif_pci_softc *sc,
ret = of_property_read_u32(dev_node, "qca,msi_addr", &msi_addr); ret = of_property_read_u32(dev_node, "qca,msi_addr", &msi_addr);
if (ret) { if (ret) {
HIF_INFO("%s: Unable to get msi_addr - error:%d\n", hif_err("Unable to get msi_addr - error :%d", ret);
__func__, ret);
return -EIO; return -EIO;
} }
ret = of_property_read_u32(dev_node, "qca,msi_base", &msi_base); ret = of_property_read_u32(dev_node, "qca,msi_base", &msi_base);
if (ret) { if (ret) {
HIF_INFO("%s: Unable to get msi_base - error:%d\n", hif_err("Unable to get msi_base - error: %d", ret);
__func__, ret);
return -EIO; return -EIO;
} }
ret = of_property_read_u32(dev_node, "core-id", &wifi_core_id); ret = of_property_read_u32(dev_node, "core-id", &wifi_core_id);
if (ret) { if (ret) {
HIF_INFO("%s: Unable to get core-id - error:%d\n", hif_err("Unable to get core-id - error: %d", ret);
__func__, ret);
return -EIO; return -EIO;
} }
@@ -174,15 +169,14 @@ int hif_ahb_enable_radio(struct hif_pci_softc *sc,
if (scn->target_info.target_type == TARGET_TYPE_IPQ4019) { if (scn->target_info.target_type == TARGET_TYPE_IPQ4019) {
ret = hif_ahb_clk_enable_disable(&pdev->dev, 1); ret = hif_ahb_clk_enable_disable(&pdev->dev, 1);
if (ret) { if (ret) {
HIF_INFO("%s:Error while enabling clock :%d\n", hif_err("Error while enabling clock :%d", ret);
__func__, ret);
return ret; return ret;
} }
} }
mem_gcc = ioremap_nocache(GCC_BASE, GCC_SIZE); mem_gcc = ioremap_nocache(GCC_BASE, GCC_SIZE);
if (IS_ERR(mem_gcc)) { if (IS_ERR(mem_gcc)) {
HIF_INFO("%s: GCC ioremap failed\n", __func__); hif_err("GCC ioremap failed");
return PTR_ERR(mem_gcc); return PTR_ERR(mem_gcc);
} }
gcc_fepll_pll_div = hif_read32_mb(sc, mem_gcc + gcc_fepll_pll_div = hif_read32_mb(sc, mem_gcc +
@@ -194,8 +188,7 @@ int hif_ahb_enable_radio(struct hif_pci_softc *sc,
>> GCC_FEPLL_PLL_CLK_WIFI_1_SEL_SHIFT); >> GCC_FEPLL_PLL_CLK_WIFI_1_SEL_SHIFT);
current_freq = wifi_cpu_freq[clk_sel]; current_freq = wifi_cpu_freq[clk_sel];
HIF_INFO("Wifi%d CPU frequency %u\n", wifi_core_id, hif_debug("Wifi%d CPU frequency %u", wifi_core_id, current_freq);
current_freq);
hif_write32_mb(sc, sc->mem + FW_CPU_PLL_CONFIG, hif_write32_mb(sc, sc->mem + FW_CPU_PLL_CONFIG,
gcc_fepll_pll_div); gcc_fepll_pll_div);
iounmap(mem_gcc); iounmap(mem_gcc);
@@ -206,8 +199,7 @@ int hif_ahb_enable_radio(struct hif_pci_softc *sc,
"wifi_radio_cold", &vrstctl); "wifi_radio_cold", &vrstctl);
reset_ctl = (struct reset_control *)vrstctl; reset_ctl = (struct reset_control *)vrstctl;
if (IS_ERR(reset_ctl)) { if (IS_ERR(reset_ctl)) {
HIF_INFO("%s: Failed to get radio cold reset control\n", hif_err("Failed to get radio cold reset control");
__func__);
ret = PTR_ERR(reset_ctl); ret = PTR_ERR(reset_ctl);
goto err_reset; goto err_reset;
} }
@@ -221,8 +213,7 @@ int hif_ahb_enable_radio(struct hif_pci_softc *sc,
"wifi_radio_warm", &vrstctl); "wifi_radio_warm", &vrstctl);
reset_ctl = (struct reset_control *)vrstctl; reset_ctl = (struct reset_control *)vrstctl;
if (IS_ERR(reset_ctl)) { if (IS_ERR(reset_ctl)) {
HIF_INFO("%s: Failed to get radio warm reset control\n", hif_err("Failed to get radio warm reset control");
__func__);
ret = PTR_ERR(reset_ctl); ret = PTR_ERR(reset_ctl);
goto err_reset; goto err_reset;
} }
@@ -236,8 +227,7 @@ int hif_ahb_enable_radio(struct hif_pci_softc *sc,
"wifi_radio_srif", &vrstctl); "wifi_radio_srif", &vrstctl);
reset_ctl = (struct reset_control *)vrstctl; reset_ctl = (struct reset_control *)vrstctl;
if (IS_ERR(reset_ctl)) { if (IS_ERR(reset_ctl)) {
HIF_INFO("%s: Failed to get radio srif reset control\n", hif_err("Failed to get radio srif reset control");
__func__);
ret = PTR_ERR(reset_ctl); ret = PTR_ERR(reset_ctl);
goto err_reset; goto err_reset;
} }
@@ -251,7 +241,7 @@ int hif_ahb_enable_radio(struct hif_pci_softc *sc,
"wifi_cpu_init", &vrstctl); "wifi_cpu_init", &vrstctl);
reset_ctl = (struct reset_control *)vrstctl; reset_ctl = (struct reset_control *)vrstctl;
if (IS_ERR(reset_ctl)) { if (IS_ERR(reset_ctl)) {
HIF_INFO("%s: Failed to get cpu init reset control", __func__); hif_err("Failed to get cpu init reset control");
ret = PTR_ERR(reset_ctl); ret = PTR_ERR(reset_ctl);
goto err_reset; goto err_reset;
} }
@@ -316,7 +306,7 @@ void hif_ahb_device_reset(struct hif_softc *scn)
mem_tcsr = ioremap_nocache(TCSR_BASE, TCSR_SIZE); mem_tcsr = ioremap_nocache(TCSR_BASE, TCSR_SIZE);
if (IS_ERR(mem_tcsr)) { if (IS_ERR(mem_tcsr)) {
HIF_INFO("%s: TCSR ioremap failed\n", __func__); hif_err("TCSR ioremap failed");
return; return;
} }
reg_value = hif_read32_mb(sc, mem_tcsr + haltreq_offset); reg_value = hif_read32_mb(sc, mem_tcsr + haltreq_offset);
@@ -338,7 +328,7 @@ void hif_ahb_device_reset(struct hif_softc *scn)
AHB_RESET_TYPE, &vrstctl); AHB_RESET_TYPE, &vrstctl);
core_resetctl = (struct reset_control *)vrstctl; core_resetctl = (struct reset_control *)vrstctl;
if (IS_ERR(core_resetctl)) { if (IS_ERR(core_resetctl)) {
HIF_INFO("Failed to get wifi core cold reset control\n"); hif_err("Failed to get wifi core cold reset control");
return; return;
} }
@@ -356,8 +346,7 @@ void hif_ahb_device_reset(struct hif_softc *scn)
"wifi_radio_cold", &vrstctl); "wifi_radio_cold", &vrstctl);
resetctl = (struct reset_control *)vrstctl; resetctl = (struct reset_control *)vrstctl;
if (IS_ERR(resetctl)) { if (IS_ERR(resetctl)) {
HIF_INFO("%s: Failed to get radio cold reset control\n", hif_err("Failed to get radio cold reset control");
__func__);
return; return;
} }
qal_vbus_activate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev, qal_vbus_activate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev,
@@ -371,8 +360,7 @@ void hif_ahb_device_reset(struct hif_softc *scn)
"wifi_radio_warm", &vrstctl); "wifi_radio_warm", &vrstctl);
resetctl = (struct reset_control *)vrstctl; resetctl = (struct reset_control *)vrstctl;
if (IS_ERR(resetctl)) { if (IS_ERR(resetctl)) {
HIF_INFO("%s: Failed to get radio warm reset control\n", hif_err("Failed to get radio warm reset control");
__func__);
return; return;
} }
qal_vbus_activate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev, qal_vbus_activate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev,
@@ -386,8 +374,7 @@ void hif_ahb_device_reset(struct hif_softc *scn)
"wifi_radio_srif", &vrstctl); "wifi_radio_srif", &vrstctl);
resetctl = (struct reset_control *)vrstctl; resetctl = (struct reset_control *)vrstctl;
if (IS_ERR(resetctl)) { if (IS_ERR(resetctl)) {
HIF_INFO("%s: Failed to get radio srif reset control\n", hif_err("Failed to get radio srif reset control");
__func__);
return; return;
} }
qal_vbus_activate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev, qal_vbus_activate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev,
@@ -401,7 +388,7 @@ void hif_ahb_device_reset(struct hif_softc *scn)
"wifi_cpu_init", &vrstctl); "wifi_cpu_init", &vrstctl);
resetctl = (struct reset_control *)vrstctl; resetctl = (struct reset_control *)vrstctl;
if (IS_ERR(resetctl)) { if (IS_ERR(resetctl)) {
HIF_INFO("%s: Failed to get cpu init reset control", __func__); hif_err("Failed to get cpu init reset control");
return; return;
} }
qal_vbus_activate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev, qal_vbus_activate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev,
@@ -426,7 +413,7 @@ void hif_ahb_device_reset(struct hif_softc *scn)
qal_vbus_release_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev, qal_vbus_release_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev,
(struct qdf_vbus_rstctl *)core_resetctl); (struct qdf_vbus_rstctl *)core_resetctl);
iounmap(mem_tcsr); iounmap(mem_tcsr);
HIF_INFO("Reset complete for wifi core id : %d\n", wifi_core_id); hif_info("Reset complete for wifi core id: %d", wifi_core_id);
} }
#else #else
void hif_ahb_device_reset(struct hif_softc *scn) void hif_ahb_device_reset(struct hif_softc *scn)

View File

@@ -181,7 +181,7 @@ int hif_snoc_bus_configure(struct hif_softc *scn)
scn->wake_irq = pld_get_irq(scn->qdf_dev->dev, wake_ce_id); scn->wake_irq = pld_get_irq(scn->qdf_dev->dev, wake_ce_id);
HIF_INFO(FL("expecting wake from ce %d, irq %d"), hif_info("expecting wake from ce %d, irq %d",
wake_ce_id, scn->wake_irq); wake_ce_id, scn->wake_irq);
return 0; return 0;

View File

@@ -789,27 +789,27 @@ void hif_dump_info(struct hif_opaque_softc *scn)
i, pipe->urb_cnt, i, pipe->urb_cnt,
pipe->usb_pipe_handle); pipe->usb_pipe_handle);
if (usb_pipeisoc(pipe->usb_pipe_handle)) if (usb_pipeisoc(pipe->usb_pipe_handle))
HIF_INFO("Pipe Type ISOC"); hif_info("Pipe Type ISOC");
else if (usb_pipebulk(pipe->usb_pipe_handle)) else if (usb_pipebulk(pipe->usb_pipe_handle))
HIF_INFO("Pipe Type BULK"); hif_info("Pipe Type BULK");
else if (usb_pipeint(pipe->usb_pipe_handle)) else if (usb_pipeint(pipe->usb_pipe_handle))
HIF_INFO("Pipe Type INT"); hif_info("Pipe Type INT");
else if (usb_pipecontrol(pipe->usb_pipe_handle)) else if (usb_pipecontrol(pipe->usb_pipe_handle))
HIF_INFO("Pipe Type control"); hif_info("Pipe Type control");
} }
for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) { for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) {
ep_desc = &iface_desc->endpoint[i].desc; ep_desc = &iface_desc->endpoint[i].desc;
if (ep_desc) { if (ep_desc) {
HIF_INFO( hif_info(
"ep_desc : %pK Index : %d: DescType : %d Addr : %d Maxp : %d Atrrib : %d", "ep_desc: %pK Index: %d: DescType: %d Addr: %d Maxp: %d Atrrib: %d",
ep_desc, i, ep_desc->bDescriptorType, ep_desc, i, ep_desc->bDescriptorType,
ep_desc->bEndpointAddress, ep_desc->bEndpointAddress,
ep_desc->wMaxPacketSize, ep_desc->wMaxPacketSize,
ep_desc->bmAttributes); ep_desc->bmAttributes);
if ((ep_desc) && (usb_endpoint_type(ep_desc) == if ((ep_desc) && (usb_endpoint_type(ep_desc) ==
USB_ENDPOINT_XFER_ISOC)) { USB_ENDPOINT_XFER_ISOC)) {
HIF_INFO("ISOC EP Detected"); hif_info("ISOC EP Detected");
} }
} }
} }
@@ -912,7 +912,7 @@ void hif_send_complete_check(struct hif_opaque_softc *scn,
void hif_suspend_wow(struct hif_opaque_softc *scn) void hif_suspend_wow(struct hif_opaque_softc *scn)
{ {
HIF_INFO("HIFsuspendwow - TODO"); hif_info("HIFsuspendwow - TODO");
} }
/** /**

View File

@@ -204,8 +204,7 @@ QDF_STATUS hif_usb_enable_bus(struct hif_softc *scn,
sc = HIF_GET_USB_SOFTC(scn); sc = HIF_GET_USB_SOFTC(scn);
HIF_INFO("%s hif_softc %pK usbdev %pK interface %pK\n", hif_debug("hif_softc %pK usbdev %pK interface %pK",
__func__,
scn, scn,
usbdev, usbdev,
interface); interface);