drm/msm/dsi-staging: fix ESD check scheduling sequence

Currently ESD check thread and display commit thread are
running asynchronously. So there might be a situation where
ESD and display suspend call can interfere with each other
and cause ESD check to fail. Which will in turn cause display
to reset when suspend is already under progress is another
thread. So make sure ESD check is scheduled to run only after
display resume sequence has finished and it is disabled before
display suspend sequence starts.

Change-Id: I7c46d740786f3a89e02252aeb4a98d167693e314
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
3 files changed