msm: bam_dmux: ensure resources are released in UL timeout
Fix a race condition which required one or more bam_dmux clients to open
a channel within one second of bam_dmux receiving the remote open command
in order to properly release resource references when processing the
uplink activity timeout. Not releasing the resources results in the
device being unable to enter suspend and buses to be unnecessarly clocked,
which causes additional power drain.
CRs-Fixed: 339235
Change-Id: Ieade0f103231838ebc3756a2ec9b2bc312cf7705
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
diff --git a/arch/arm/mach-msm/bam_dmux.c b/arch/arm/mach-msm/bam_dmux.c
index 5bef079..97f8722 100644
--- a/arch/arm/mach-msm/bam_dmux.c
+++ b/arch/arm/mach-msm/bam_dmux.c
@@ -556,8 +556,7 @@
if (!a2_pc_disabled) {
a2_pc_disabled = 1;
- schedule_delayed_work(&ul_timeout_work,
- msecs_to_jiffies(UL_TIMEOUT_DELAY));
+ ul_wakeup();
}
handle_bam_mux_cmd_open(rx_hdr);