summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Chiu <wchiu@qca.qualcomm.com>2014-09-12 18:34:42 +0800
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-09-16 13:37:04 -0700
commit85da2aebc040435a4e33ad0cf5d4d1ad39e7faa3 (patch)
treec310f79d0d4960807bed83e196ee1a54f864b4c4
parent6c5611bf0b52d843015593ac6b9520067040617f (diff)
qcacld: Add debug information into HIF suspend/resume
Add more informations into USB suspend/resume/reset_resume function for debug purpose. Change-Id: I0587750e6b54b344de002aaa64b913c2edc68474 CRs-Fixed: 723675
-rw-r--r--CORE/SERVICES/HIF/USB/if_usb.c11
-rw-r--r--CORE/SERVICES/HIF/USB/usbdrv.c3
2 files changed, 10 insertions, 4 deletions
diff --git a/CORE/SERVICES/HIF/USB/if_usb.c b/CORE/SERVICES/HIF/USB/if_usb.c
index 486d2ae7f9d6..e747850ed02b 100644
--- a/CORE/SERVICES/HIF/USB/if_usb.c
+++ b/CORE/SERVICES/HIF/USB/if_usb.c
@@ -292,6 +292,7 @@ static int hif_usb_suspend(struct usb_interface *interface, pm_message_t state)
void *vos = vos_get_global_context(VOS_MODULE_ID_HIF, NULL);
v_VOID_t * temp_module;
+ printk("Enter:%s,Line:%d \n\r", __func__,__LINE__);
if (vos == NULL)
return 0;
/* No need to send WMI_PDEV_SUSPEND_CMDID to FW if WOW is enabled */
@@ -322,6 +323,7 @@ static int hif_usb_suspend(struct usb_interface *interface, pm_message_t state)
}
}
usb_hif_flush_all(device);
+ printk("Exit:%s,Line:%d \n\r", __func__,__LINE__);
return 0;
}
@@ -336,6 +338,7 @@ static int hif_usb_resume(struct usb_interface *interface)
void *vos = vos_get_global_context(VOS_MODULE_ID_HIF, NULL);
v_VOID_t * temp_module;
+ printk("Enter:%s,Line:%d \n\r", __func__,__LINE__);
if (vos == NULL)
return 0;
/* No need to send WMI_PDEV_SUSPEND_CMDID to FW if WOW is enabled */
@@ -360,9 +363,10 @@ static int hif_usb_resume(struct usb_interface *interface)
if (!wma_is_wow_mode_selected(temp_module)) {
wma_resume_target(temp_module);
} else if (wma_disable_wow_in_fw(temp_module)) {
- return (-1);
+ pr_warn("%s[%d]: fail\n", __func__, __LINE__);
+ return (-1);
}
-
+ printk("Exit:%s,Line:%d \n\r", __func__,__LINE__);
return 0;
}
@@ -371,8 +375,9 @@ static int hif_usb_reset_resume(struct usb_interface *intf)
HIF_DEVICE_USB *device = usb_get_intfdata(intf);
struct hif_usb_softc *sc = device->sc;
+ printk("Enter:%s,Line:%d \n\r", __func__,__LINE__);
HIFDiagWriteCOLDRESET(sc->hif_device);
-
+ printk("Exit:%s,Line:%d \n\r", __func__,__LINE__);
return 0;
}
diff --git a/CORE/SERVICES/HIF/USB/usbdrv.c b/CORE/SERVICES/HIF/USB/usbdrv.c
index 453739ddddd6..9de7c4ea5eeb 100644
--- a/CORE/SERVICES/HIF/USB/usbdrv.c
+++ b/CORE/SERVICES/HIF/USB/usbdrv.c
@@ -856,7 +856,7 @@ void usb_hif_start_recv_pipes(HIF_DEVICE_USB *device)
{
device->pipes[HIF_RX_DATA_PIPE].urb_cnt_thresh =
device->pipes[HIF_RX_DATA_PIPE].urb_alloc / 2;
-
+ printk("Enter:%s,Line:%d \n\r", __func__,__LINE__);
if (!htc_bundle_recv) {
usb_hif_post_recv_transfers(&device->pipes[HIF_RX_DATA_PIPE],
HIF_USB_RX_BUFFER_SIZE);
@@ -878,6 +878,7 @@ void usb_hif_start_recv_pipes(HIF_DEVICE_USB *device)
usb_hif_post_recv_transfers(&device->pipes[HIF_RX_INT_PIPE],
HIF_USB_RX_BUFFER_SIZE);
#endif
+ printk("Exit:%s,Line:%d \n\r", __func__,__LINE__);
}
A_STATUS usb_hif_submit_ctrl_out(HIF_DEVICE_USB *device,