From 6710de643f84d1c9dc67c2d8590417b0b1ca2ba9 Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Mon, 30 Nov 2015 16:48:35 -0800 Subject: [PATCH] qcacld-3.0: completion_freeq_lock needs initialization Initialization of completion_freeq_lock was removed as part of removing the completion thread. The lock still protects the variable num_sends_allowed for copy engines used for sending. Change-Id: Ia52d2c1b839d2ccfedbd175f1b8f60f953d08203 CRs-Fixed: 951563 --- core/hif/src/ce/ce_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/hif/src/ce/ce_main.c b/core/hif/src/ce/ce_main.c index 1d8003ccbf52..9ade278246fd 100644 --- a/core/hif/src/ce/ce_main.c +++ b/core/hif/src/ce/ce_main.c @@ -844,7 +844,11 @@ int hif_completion_thread_startup(struct HIF_CE_state *hif_state) hif_pci_ce_recv_data, pipe_info, attr.flags & CE_ATTR_DISABLE_INTR); } + + if (attr.src_nentries) + cdf_spinlock_init(&pipe_info->completion_freeq_lock); } + A_TARGET_ACCESS_UNLIKELY(scn); return 0; }