From 75ea891eca545b07303b0b29a80dbe49cd2dc7f2 Mon Sep 17 00:00:00 2001 From: Arun Khandavalli Date: Tue, 2 Aug 2016 16:35:00 +0530 Subject: 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 --- qdf/linux/src/i_qdf_types.h | 3 +++ qdf/linux/src/qdf_mc_timer.c | 14 ++++++++++++++ 2 files changed, 17 insertions(+) (limited to 'qdf/linux/src') 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); -- cgit v1.2.3