msm: vidc: disable Hier-P when LTR is enabled

Hier-P and LTR are mutually exclusive in firmware. Disable Hier-P
using HFI_PROPERTY_PARAM_VENC_HIER_P_MAX_NUM_ENH_LAYER
instead of HFI_PROPERTY_CONFIG_VENC_HIER_P_ENH_LAYER.

Change-Id: Ib4eb053a0ccef94c1996392eba19c5b83f7c9971
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
diag: Prevent suspend in Memory Device mode

Apps processor can goto suspend when receiving data from peripherals.
This can result in data being drop from Diag driver to the user
space clients in Memory Device mode. Make changes to acquire
wakeup source object till the data is copied to user space.

Change-Id: I7479c89707199557420bac18e1744a829477164c
CRs-Fixed: 624445
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
msm: mdss: Add support to enable esd check through dtsi entry

Add support to enable or disable esd check through panel dtsi
entry. This will help in enabling the feature only for those
panels which support BTA.

Change-Id: I4ef85bb2e78b133dd9577ac3d6788e46b34fe761
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
msm: mdss: Add support for checking panel status through register read

ESD feature may need to check the status of the panel by reading specific
panel register depending on the panel. Add support for ESD status check
through status register read and to configure the method used for checking
panel status through the panel dtsi entry.

Change-Id: I13b11362722eb2ad379162944eafff04ec01d1cb
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
msm: mdss: add ESD support by register read for DSI v2

Add support to check ESD status by register read for
DSI-v2 based platforms.

Change-Id: I013d31c67b3e5c61b7723ecb234be06c2fd5a451
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
ARM: dts: msm: configure panel esd status check method for panels

All the panels may not support BTA for checking the status of the
panel due to ESD attack. Configure dsi-panel-status-check-mode
to 'bta_check' for nt35590 720p panel. For panels not supporting
BTA, configure dsi-panel-status-check-mode to 'reg_read' in
corresponding DTSI file.

CRs-Fixed: 660805
[nabrah@codeaurora.org: change-id from msm-3.10 is
I73e8a883ff571c5679d18c5beed0025f1aa9f0d9. Manually merged the
change due to directory structure difference with msm-3.10 branch.]

Change-Id: I2cffeaa73161e5619cc869aa1e51afdd17b37318
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
kernel: cgroup: protecting css_set object

Accessing the css_set object should be protected with css_set_lock.
NULL check is required before accesing object.

CRs-fixed: 723762
Change-Id: Ia3a0314a04419889d5002a8f2bf2c1fe9dfa3671
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
msm: mhl: sii8334: Fix null pointer dereference at power off

Check for null pointer before disabling the regulators.
During cable connect/disconnect and suspend/resume check for
previous power state of mhl to avoid enabling/disabling gpio's
and regulators twice.

Change-Id: I44dc51122da4630974147b829236cb39c1ad54b0
Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
msm: mhl: sii8334: Add mutex lock to avoid race condition

Add mutex lock betweeen mhl_sii_config and mhl_sii_device_discovery
functions to avoid accesing the variable flag before it is updated.
This will avoid accessing the mhl init settings i2c register
before turning on the mhl regulator's and gpio's.

Change-Id: If3f7fbe3d6ab84f101c407c43ac8b410e6df38fe
Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
Revert "kernel: cgroup: protect cgroup linked lists"

This reverts commit 9ad00d0452afe0eb0c02548f42f70756b847e867.

The patch did not fix the list corruption, so reverting it.

Change-Id: Ie210269c231972680d28f9cd6758be035c8b8c8e
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
msm: msm_bus: Suspected fix for deadlock

mutex is not released while checking for
null pdata which can lead to possible deadlock
condition.

Change-Id: I1dc3efd725df5bb75c96434a81d9a8f3f868cd0a
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
mdss: mdp: Appropriate check to see if right LM is needed

New fixes rely on selecting right layer mixer by changing
destination layer x offset to be >= left layer mixer's width.
This patch is to allow for this logic to be corrected on
chipsets that do not support x offset being greater than
layer mixer's width.

Change-Id: I860e87a8092c81a0a1523ee7b47b02b57160f4af
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Merge "kernel: cgroup: protecting css_set object"
Merge "Revert "kernel: cgroup: protect cgroup linked lists""
Merge "msm: msm_bus: Suspected fix for deadlock"
Merge "mdss: mdp: Appropriate check to see if right LM is needed"
ASoC: msm: qdsp6v2: add path to support external EC reference

Addition of a routing path to connect VOICE2
uplink with MI2S Tx port. This change is required if
external EC is to be used.

CRs-Fixed: 723640
Change-Id: Idebb463467ee8f371cb3c0f76b0f30fd260e88da
Signed-off-by: Aravind Kumar <akumark@codeaurora.org>
Merge "ASoC: msm: qdsp6v2: add path to support external EC reference"
msm: mdss: fix the RGB666 PACK_ALIGN setting for dsi

For RGB 666 panel format on DSI, a change has been made earlier to set the
alignment to MSB. This was causing color corruption on EDP panel as it
requires LSB alignment. This fix is to set the MSB alignment for RGB666
format only on DSI panels, so that it doesn't affect EDP.

Change-Id: If07b915bb30b00ff1824c7c662bbf4db8a217a6b
Signed-off-by: Vineet Bajaj <vbajaj@codeaurora.org>
Merge "msm: vidc: disable Hier-P when LTR is enabled"