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)