MLK-19017-7 drm/imx: sec-dsim_imx: add rpm status check for suspend/resume
authorFancy Fang <chen.fang@nxp.com>
Wed, 25 Jul 2018 07:42:51 +0000 (15:42 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit9a9987c885cc6a0b886c7a08fbc660168e2f2202
tree688d9273337ff2b2d9c27a5a24c45135ad9c2879
parent6dc874da052e7c30e6e89bcafdf5e9129ea45d26
MLK-19017-7 drm/imx: sec-dsim_imx: add rpm status check for suspend/resume

Add runtime PM status check during runtime suspend and resume
to avoid unnecessary jobs if it is already in that state which
can avoid possible kernel warnings of clock disable/unprepare
mismatch during system suspend if it is alreay in runtime
suspended state.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 6f95c6fdc0de2fd4fe1d835c164f5e3cfb23e17d)
(cherry picked from commit b6f7433f5b795fa16c15ef9cb3551a371f42f25e)
drivers/gpu/drm/imx/sec_mipi_dsim-imx.c