summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Khandavalli <akhandav@codeaurora.org>2016-08-02 16:35:00 +0530
committerArun Khandavalli <akhandav@codeaurora.org>2016-08-04 10:34:22 +0530
commit75ea891eca545b07303b0b29a80dbe49cd2dc7f2 (patch)
tree65b717af1166b5f626c6780d445b41b1a1d3b510
parent3af34357417fc349c7c44ad0faf41cee0531a237 (diff)
qcacmn: Add bus_id memeber to qdf_device
With Load once unload never architecture, the cds modules will be opened/closed several times. As part of configuration of modules bus id needs to passed. So, add a new member to save the bus_id passed by the platform driver during the driver intialization, Change-Id: Ic580e03076e5e8c557dde1879e223606a14f79b8 CRs-Fixed: 1049224
-rw-r--r--qdf/linux/src/i_qdf_types.h3
-rw-r--r--qdf/linux/src/qdf_mc_timer.c14
2 files changed, 17 insertions, 0 deletions
diff --git a/qdf/linux/src/i_qdf_types.h b/qdf/linux/src/i_qdf_types.h
index 0e9aafbb9272..74325b7b64f5 100644
--- a/qdf/linux/src/i_qdf_types.h
+++ b/qdf/linux/src/i_qdf_types.h
@@ -185,6 +185,9 @@ struct __qdf_device {
__qdf_os_intr func;
struct __qdf_mempool_ctxt *mem_pool[MAX_MEM_POOLS];
enum qdf_bus_type bus_type;
+#ifdef CONFIG_MCL
+ const struct hif_bus_id *bid;
+#endif
};
typedef struct __qdf_device *__qdf_device_t;
diff --git a/qdf/linux/src/qdf_mc_timer.c b/qdf/linux/src/qdf_mc_timer.c
index 8d10d09ad327..80143ea5888d 100644
--- a/qdf/linux/src/qdf_mc_timer.c
+++ b/qdf/linux/src/qdf_mc_timer.c
@@ -687,3 +687,17 @@ unsigned long qdf_mc_timer_get_system_time(void)
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}
EXPORT_SYMBOL(qdf_mc_timer_get_system_time);
+
+/**
+ * qdf_timer_module_deinit() - Deinitializes a QDF timer module.
+ *
+ * This API deinitializes the QDF timer module.
+ * Return: none
+ */
+void qdf_timer_module_deinit(void)
+{
+ QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO_HIGH,
+ "De-Initializing the QDF MC timer module");
+ qdf_mutex_destroy(&persistent_timer_count_lock);
+}
+EXPORT_SYMBOL(qdf_timer_module_deinit);