From 638de5f7dd5fdc46bd27083e3377bb0e3a72fefa Mon Sep 17 00:00:00 2001 From: Yashwanth Date: Fri, 4 Sep 2020 17:23:50 +0530 Subject: [PATCH] disp: msm: sde: update irq enable check during irq affinity notify MDSS irq will be enabled/disabled only during post-enable and pre-disable power events. During idle usecase in video mode, interrupts will be disabled but not mdss hw irq. This change uses irq vote count check while adding pm qos irq vote. Change-Id: Iae0ea19fbe688d0ee762b5e75f37548ba5671def Signed-off-by: Yashwanth --- msm/sde/sde_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/sde/sde_kms.c b/msm/sde/sde_kms.c index 4cde404853eb..75a05b6b64d3 100644 --- a/msm/sde/sde_kms.c +++ b/msm/sde/sde_kms.c @@ -3732,7 +3732,7 @@ static void sde_kms_irq_affinity_notify( sde_kms->irq_cpu_mask = *mask; // request vote with updated irq cpu mask - if (sde_kms->irq_enabled) + if (atomic_read(&sde_kms->irq_vote_count)) _sde_kms_update_pm_qos_irq_request(sde_kms); mutex_unlock(&priv->phandle.phandle_lock);