Revert "msm_fb: Update backlight level on resume after first pan display"
A seperate branch needs to be created figuring out how to remove as many FIH changes as possible and bring msm_fb up to date

This reverts commit 568047196992e002c659fb5c92356b19205810a6.
msm_fb: Avoid multiple disable calls for vsync interrupt

For LCDC and DSI Video mode panels, there seem to be multiple
disable calls for Vsync interrupt term. Change to avoid this
issue by proper synchronization of vsync term and DMA term.

Change-Id: Iaf11ba92cc7db55c6196add2d7dea581cb29fc8a
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
msm_fb: Handle histogram IRQ cleanly during suspend/resume

Currently, if the histogram disable IOCTL comes after panel
is turned off, we early return the IOCTL causing the interrupt
to be left enabled. This causes IPC issues during suspend. Fix
this issue by properly enabling/disabling the histogram interrupt
during suspend/resume scenario.

Change-Id: I4d38776a43ea854aff3c10c8d9d5450af1d98c91
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
video: msm_fb: Ensure backlight is scaled atomically

Ensure that when backlight scaling ratio or backlight level is being
changed that the operation execute atomically. This prevents a backlight
level change from being overwritten when it interrupts a backlight scale
update.

(cherry picked from commit f4fef8225ce6730257ef5ae276e89eeb32e3abd7)

Change-Id: I520758435355f5a6bf1730d85085ed77ee18c87c
CRs-Fixed: 424084
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
msm_fb: Fix race conditions for backlight update

Fix race conditions for backlight update thread to ensure
that panel specific artifacts are not observed during rapid
suspend/resume.

(cherry picked from commit cf6c96eea42169074ab477c7d189d628bad66090)

Change-Id: I82fedc2d9656fcce541f6fb9fef07b946ed3beb2
CRs-fixed: 424084
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>