OSDN Git Service

msm: ipa3: fix a race condition on clock vote from suspend
authorSkylar Chang <chiaweic@codeaurora.org>
Fri, 24 Feb 2017 19:22:03 +0000 (11:22 -0800)
committerSkylar Chang <chiaweic@codeaurora.org>
Mon, 1 May 2017 18:13:35 +0000 (11:13 -0700)
commitc3646075c203bb2e47a600b4e3f24627b4c1f8d7
treeb1e1b314c99d1b17e970906f9e3d060f277272d3
parentf1a10f1598632dc7ab10b369083a21ff68b8398b
msm: ipa3: fix a race condition on clock vote from suspend

There is a potential race condition where suspend interrupt
handling might be running from two different context in parallel.
Add a mutex to ensure mutual exclusion when voting for IPA clocks.

CRs-Fixed: 2037199
Change-Id: I7f14866696b6c9f5e239f3de2c4bad6991097ecb
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
drivers/platform/msm/ipa/ipa_v2/ipa.c
drivers/platform/msm/ipa/ipa_v3/ipa.c