summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChien-Ming Chen <mingc@qca.qualcomm.com>2015-02-09 17:22:47 +0800
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-02-11 17:57:02 +0530
commit44bb3dc447c009c4c7f348c837c5f2d52acde69c (patch)
tree296d7d88075c87222d6e6c0c2ef4fffbb14fbfd7
parent2a09f5ce60d021da6723063c7aef598be851e554 (diff)
qcacld: usb: Add driver state information for USB device
Add more state information about USB unloading. It helps to print out states during unloading. Change-Id: Ia44df47b551b37d5c0f8d77c94ad103da31c1c9c CRs-Fixed: 792999
-rw-r--r--CORE/SERVICES/HIF/USB/if_usb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/CORE/SERVICES/HIF/USB/if_usb.c b/CORE/SERVICES/HIF/USB/if_usb.c
index 9ea0915670ca..a34dcdc1a149 100644
--- a/CORE/SERVICES/HIF/USB/if_usb.c
+++ b/CORE/SERVICES/HIF/USB/if_usb.c
@@ -232,6 +232,9 @@ static void hif_usb_remove(struct usb_interface *interface)
*/
if (!sc)
return;
+
+ pr_info("Try to remove hif_usb!\n");
+
/* wait __hdd_wlan_exit until finished and no more than 4 seconds*/
while(atomic_read(&usb_sc->hdd_removed_processing) == 1 &&
usb_sc->hdd_removed_wait_cnt < 20) {
@@ -283,6 +286,7 @@ static void hif_usb_remove(struct usb_interface *interface)
pktlogmod_exit(scn);
#endif
__hdd_wlan_exit();
+ pr_info("Exit HDD wlan... done by %s\n", __func__);
}
hif_nointrs(sc);
@@ -504,6 +508,7 @@ void hif_unregister_driver(void)
{
if (is_usb_driver_register) {
long timeleft = 0;
+ pr_info("Try to unregister hif_driver\n");
if (usb_sc != NULL) {
/* wait __hdd_wlan_exit until finished and no more than
* 4 seconds
@@ -535,6 +540,7 @@ void hif_unregister_driver(void)
pktlogmod_exit(usb_sc->ol_sc);
#endif
__hdd_wlan_exit();
+ pr_info("Exit HDD wlan... done by %s\n", __func__);
}
atomic_set(&usb_sc->hdd_removed_processing, 0);
}
@@ -558,6 +564,7 @@ deregister:
timeleft);
finish:
usb_unregister_notify(&hif_usb_dev_nb);
+ pr_info("hif_unregister_driver!!!!!!\n");
}
}