Revert "msm: mdss: Remove distinction between positive and negative polarities"

This reverts commit 8b380ceb7890d90e5a94aa4791c603e75ed25a98.
Revert "Option to disable touch wake with power button - thx flar2"

This reverts commit 0e3dcf8e92375844a227ef496e08b0c59181cba3.
Revert "update 6"

This reverts commit 6b281715041c437a1a9aaec2acd85798e3582f3e.
mdss: display: Add support for dynamic FPS

Add sysfs entry for dynamic FPS update mode. Add support to
change FPS in the following scenarios:
1. Store the FPS and change the clocks only when Suspend/resume
   happens. This is the default configuration.
2. Change the FPS immediately by updating the clocks. Video
   mode engine is disabled and then enabled when clock rate
   is updated.

CRs-Fixed: 488453
Change-Id: I1722d54d9fbfdfbd7d22e02d8776a0f60dc86141
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
msm: mdss: Fix DSI event handler for dynamic FPS configuration

Commit 1c3fce18 introduced a bug which resulted in the dynamic
fps configuration function being called in response to the
command list kickoff event. This results in incorrect failure
logs getting printed whenever DSI operates in command mode.

CRs-Fixed: 565171
Change-Id: I57359f624c2d6ddaa1a4c2fd7a5946ce9112ca16
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
msm: mdss: remove interruptible timeout waits

Currently display driver contexts are not utilizing interruptible
wake-ups while using wait_for_completion_interruptible_timeout. This
can lead to incorrect context wake-up and un-predictable outcome. Since
there is already a timeout attached to these kind of context sleeps, it
is safe to replace them with wait_for_completion_timeout.

Change-Id: Ia528debf34aef0acdda2bea1219a128c200c3651
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
msm: mdss: delay freeing buffers for additional vsync

There are cases where if commit happens very close to vsync or in other
uncommon conditions, where MDP will continue fetching from old buffer
address when unmap of the buffer happens. In order to avoid such
scenarios keep a reference of buffers for an additional commit before
unmapping to avoid potential iommu page fault.

Change-Id: Ied61b4851e2d410d71360ad0c119ef21009f91a1
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: mdss: push wait for fences and ping pong done as late as possible

All the configuration up until MDP flush is double buffered. This means
we are able to do all hardware programming without settings taking
effect until flush happens. Perform all programming, wait for fences
and wait for previous frame is done just before the flush in order to
reduce the time between last frame done and kickoff of next one.

Change-Id: I1fd0c7a65309a3b148c8efef61819bfe9a248f29
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Revert "msm: mdss: push wait for fences and ping pong done as late as possible"

This reverts commit 3f904f2f89bb6c9914cf5621c2dc6719348ab2c2.
Revert "msm: mdss: Fix DSI event handler for dynamic FPS configuration"

This reverts commit 59ed8072cfcac90153e36a80a179062908dac5c1.
msm: mdss: Make notify update waits interruptible

Wait for completion in notify update call are uninterruptible
causing excessive delay during suspend cases. Making them
interruptible.

Change-Id: I1a4ff6ce3e0add21d4e46a41372b076b277d10f5
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
drivers: touch_synaptics: Remove PWRKEY_SUSPEND from touch driver

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
fix