drm/msm/sde: reset kickoff count atomically before irq enable

Rework physical encoder kickoff counting logic to address issues
where an interrupt could be missed, or completion could get out
of sync due to a race condition between kickoff count and irq
enable. It also generalizes the kickoff count across the video
and command interfaces.

Change-Id: Id88f5b2859f74ee1aced8fbd7552e9023155d01c
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
5 files changed