msm: ipa3: Fix to release IPA clock during ap suspend

When AP is going to suspend, there is a possibility that
IPA clock is released twice due to sps_release_resource being
called from 2 contexts. Make a change to protect
sps_release_resource to make sure IPA clock is released
only once.

CRs-Fixed: 1008230
Change-Id: I39a806ee6c5c836928bc07295d17e12108836709
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
2 files changed