Revert "msm: vidc: Fix various decoder downscalar issues"

This reverts commit 9a2d0a121d84d17cef1fa6099bdfda8407733374.
Revert "msm: vidc: flush queued work during device suspend"

This reverts commit 19229b94942a803d9df2caa589f9c8813cc022b7.
Revert "msm: vidc: Query deblocker parameters from cluster"

This reverts commit ef3cf0763b02cb774c82375ce8f06552bed86972.
Revert "msm: vidc: recover from firmware fatal error"

This reverts commit 619e2dd850b199ac4ee4fde0939e06c01c71c689.
Revert "msm: vidc: Disable clock gating feature"

This reverts commit ac8299e4c82f8813cb3b7b35cbe34f6e151e8552.
Revert "msm: vidc: unprepare clocks during power collapse"

This reverts commit b1c92d473c58e30536407d6d8d92cd9b5e22c42d.
msm: mdss: synchronize wfd driver iommu mmap/munmap with mdss

Add clocks reference during wfd driver iommu mdp_mmap/mdp_munmap
to ensure iommu is in proper state while wfd driver map/un-map
any buffers.

Change-Id: Id1a24285b81d5047e5e9f002ade9694ea49be59d
Signed-off-by: Pawan Kumar <pavaku@codeaurora.org>
msm: wfd: Lock the state in vsg_start

Protect the state in vsg_start with a mutex as it can be accessed from
other threads.

CRs-Fixed: 634425
Change-Id: I823b34f1b310092ea100d366d92a3293a0c74e6d
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
msm: vidc: Validate userspace buffer count

Makesure the number of buffers count is less than
the maximum limit to avoid structure overflow errors.

Change-Id: Icf3850de36325637ae43ac95f1c8f0f63e201d31
CRs-fixed: 563694
Signed-off-by: Pachika, Vikas Reddy <vpachi@codeaurora.org>
msm: vidc: Validate userspace buffer count before using it

Validate the number of buffers count variable before
using it to avoid structure overflow error.

Change-Id: I61582c93e0f26ec6842e437134fb8a42bdbc36ff
CRs-fixed: 563654
Signed-off-by: Pachika, Vikas Reddy <vpachi@codeaurora.org>
input: touchscreen: synaptics: fix may be uninitialized warning
This caused GCC 4.9.3 to fail to compile. The offending line is only
some dev_info output so commenting it out shouldn't cause issues.
Revert "build: a bunch of werrors that break gcc >= 4.8"

This reverts commit 90f91d9ff1433fc7ed7d51c0e2217b153e54dcd0.
build: fix compile errors when using GCC 4.9.3
Instead of seding sizeof(buf) I actually only changed the ones that
caused errors.

The net/bluetooth/hci_conn.c fix is from EvolutionMod
<kernelcraft@gmail.com>
https://github.com/EvolutionMod/Experimental-M8/commit/ae2acbf03db98840ae2fca889e2f3e9a1b8d1bb1

The cpufreq_interactive.c fix is by Chih-Wei Huang
<cwhuang@android-x86.org>
https://gitorious.org/linux-sunxi/linux-sunxi/commit/4a7cebd91f796fcb9d1e1e5723de27b75f1712d6