msm: clock-8610: Remove some simulation related FIXMEs

Remove halt check and dependendency hacks introduced
to workaround bugs in simulation. Real hardware does
not possess these bugs.

Change-Id: I5c2f9156d3bae7c78cd624f2629baa35381f4831
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
ASoC: msm: Add VoIP2 FE DAI

Add a front-end DAI for VoIP2 session to support
VoWLAN and Voip concurrency.

Change-Id: I104dd43af512c9d8664736a46879be992c76e469
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
ASoC: wcd9xxx: Disable RC oscillator after use

Currently RC oscillator is left enabled even after
its use when headset is inserted and then removed.
Disable RC oscillator after headset is removed during
clock block put.

Change-Id: Ic799be15f900b7261455e27c4e6b7b95c049f6e4
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
msm: camera: prevent invalid access through mmap

Disable access to invalid addresses through mmap.
Add appropriate range checks to ensure valid accesses
through framebuffer mmap. This prevents illegal
access into memory.

Change-Id: Ie053d9d8efe951b88f28b020dd9c2356e54723a7
CRs-Fixed: 475794
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
ARM: dts: apq: Enable touch screen shutdown

Per power grid, L18 and LVS1 should be turned off during sleep.
Touch screen needs to turn off those regulators to achieve this.

Change-Id: I1123437a8011d9a1657630d180fad878117a11d7
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
msm: mdss: hdmi: bounds check for edid dbc

Ensure data is read from within limits of buffer
for data block collection/video data block in EDID.
This prevents EDID data from being read past the end
of data block collection offset.

Change-Id: I2ddb279d715c89a15ff4a4679480900b73b43da4
CRs-Fixed: 522147
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: mdss: hdmi: bounds check for ieee reg id field

Ensure data is only read from allowed region for
IEEE reg ID field in the EDID data. This prevents
illegal data access beyond the limits of this buffer.

Change-Id: Iee6f1a54be6f1c833da37687c0c8063e3c27f122
CRs-Fixed: 522147
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: mdss: hdmi: bounds check for 3d data in vsd buf

Ensure the 3D formats are only read from the proper
buffer region for vendor specific data block. This
prevents illegal data being read from the EDID data.

Change-Id: I36286db54241246aaa06c399e4b6e962d54d716d
CRs-Fixed: 522147
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
defconfig: 8610: Enable CC_STACKPROTECTOR

Enable the stack canary feature in an effort to detect
potential buffer overflows within the kernel.

Change-Id: I6861007448767038e4f851f1050f2cd24f479bbb
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
msm: jpeg: Fix the VBIF settings for 8962

Update the VBIF settings for 8962 to be same as 8974 v2 HW.

Change-Id: Ia048a905e9d9b57149c3616c91d7a885a9b38544
Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
ASoC: msm8974: Add VoIP2 DAI in machine driver

Add VoIP2 front-end DAI to support VoWLAN on 8974.

Change-Id: I27e161120e1c46d325ace0a9b844b45c92e47e75
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
qseecom:  Check for case where listener service is not found

When listerner service is not in the list of registered listener,
the resulting ptr will a NULL.  Check for this case of NULL ptr
to indicate missing listener service.

Change-Id: I0d2c7b01143c40711f71bf434493ac5301314cf2
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
ASoC: msm8226: Add VoIP2 DAI in machine driver

Add VoIP2 front-end DAI to support VoWLAN and VoIP concurrent calls.

Change-Id: I2b6950df4638ae1f16cccfc998b2f8d8f342f690
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
msm: msm_fb: remove mmio access through mmap

Disable access to mm io and add
appropriate range checks to ensure valid accesses
through framebuffer mmap. This prevents illegal
access into memory.

CRs-Fixed: 474706
Change-Id: If25166f2732433ef967e99c716440030b567aae9
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
ASoC: msm8x10: Add VoIP2 DAI in machine driver

Add VoIP2 front-end DAI to support VoWLAN and VoIP concurrent calls.

Change-Id: Id32c0ec21e9443e3f59f4fe5701757fe9e4ad787
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
mm: change max readahead size to 512KB

Change the VM_MAX_READAHEAD value from the default 128KB
to 512KB. This will allow the readahead window to grow to a maximum size
of 512KB, which greatly benefits to sequential read throughput.

Change-Id: Ia0780ea4e2a4ae0b6111485b72fb25376dcb1f96
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
crypto: msm: Remove invalid check in qcedev driver

Unsigned int variable is compared for < 0, which is an invalid if
condition. This patch removes the check.

Change-Id: I76c10223672db2c387e025697dd8bd921e5ddc1b
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
dts: Makefile: compile krypton mtp and cdp blobs

Add support to compile msmkrypton mtp and cdp
device tree blobs.

Change-Id: I951fde8a3f365b09dc0748715182df867ad9749a
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
msm: camera: fix signal error for function msm_post_event

Fix msm_post_event timeout error due to signal,
if return ERESTARTSYS, will re-call wait_event_interruptible_timeout.

Change-Id: I37b8f71564528dea1c436769adcead80bbc1ed3a
Signed-off-by: chiz <chiz@codeaurora.org>
ASoC: wcd9310: Codec changes to use new macros

ASoC macros and interface that codec uses have been modified since
kernel 3.7. Change updates the codec driver to use 3.7
asoc macros and interface.

Change-Id: I4281b2980bb0023cc25a75cd6cb3527dc2a8b69b
Signed-off-by: Jay Wang <jaywang@codeaurora.org>