MLK-19112 gpu: imx: lcdif: change 'rpm_suspended' to be atomic counter
authorFancy Fang <chen.fang@nxp.com>
Thu, 2 Aug 2018 06:08:56 +0000 (14:08 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitfc016194eb3570dd65125f6a5fb4c2246fe3f1e5
tree8c1ba54046908e453f7816f37c0c081b63fab638
parent2463b4f0aebe68aac87db2f7c67f721c5e7b04dd
MLK-19112 gpu: imx: lcdif: change 'rpm_suspended' to be atomic counter

Change the 'rpm_suspended' field to be an atomic type from
boolean type to make it have the counting ability which can
help to detect and avoid runtime suspend and resume calls
mismatch caused problems.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit dece6fbe51f9c0ea3cd42c52e1c174bd26ae70f1)
(cherry picked from commit 909a7d18608224861ef7a0aca6ba1e736a7570fa)
drivers/gpu/imx/lcdif/lcdif-common.c