msm: camera: Remove camera v1 source files

Remove camera v1 source files since its obsolete.

Change-Id: I5196b63d9730eac9ac7ff31785d0f4a0e3e68975

Signed-off-by: Deepak Cherian <dcheri@codeaurora.org>
ASoC: msm: qdsp6v2: Copy frame data based on frame length

Copying data based on count will result in copying
uninitialized data to userspace which can potentially
disclose sensitive data. Fix by copying data based on
frame instead.

Change-Id: I39e264b1ffc7a6b79b01c14cd0b5bb00c67307c6
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
(cherry picked from commit cccf5a9e98165ea54ad1858235edcb68df043d47)
msm: mdss: Validate input argument

MDP kernel function allocates memory using one of the input
parameters. Add sanity check for this input parameter to
ensure proper memory allocation.

Change-Id: Ib7ff3b02e818c0d2a623fb3428fb93cc5bd8e41e
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
(cherry picked from commit 30cf662fbfea560e931b03895a31cf7cd74175f0)
ARM: 7809/1: perf: fix event validation for software group leaders

It is possible to construct an event group with a software event as a
group leader and then subsequently add a hardware event to the group.
This results in the event group being validated by adding all members
of the group to a fake PMU and attempting to allocate each event on
their respective PMU.

Unfortunately, for software events wthout a corresponding arm_pmu, this
results in a kernel crash attempting to dereference the ->get_event_idx
function pointer.

This patch fixes the problem by checking explicitly for software events
and ignoring those in event validation (since they can always be
scheduled). We will probably want to revisit this for 3.12, since the
validation checks don't appear to work correctly when dealing with
multiple hardware PMUs anyway.

Change-Id: Ic1722ba7463c9836f1ff595d7e8da1d0fc0e32b0
Cc: <stable@vger.kernel.org>
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Git-commit: c95eb3184ea1a3a2551df57190c81da695e2144b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[joonwoop@codeaurora.org: fixed merge conflict]
CRs-fixed: 529735
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
(cherry picked from commit ebd636703800f280a02c9dc95ccff565272a315d)
qdsp5: memset stack buffer allocation.

This is needed to avoid garbage data in uninitialized variables.

Change-Id: I3a043a4ce4e14d8e0c24b434181dff484eddac72
CRs-Fixed: 551548
CRs-Fixed: 551542
CRs-Fixed: 551555
CRs-Fixed: 551563
CRs-Fixed: 551566
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
(cherry picked from commit 4a0641914a3ae62e3c01db1c9e90a12d59229571)
ASoC: msm: qdsp6v2: Fix buffer overflow in voice driver

Userspace registers calibration data with acdb driver
through ioctls. Voice driver registers the calibration
data with CVD by querying acdb data from acdb driver and
copies the calibration data in apr message.

The size of the calibration data can be controlled by userspace
and can result in buffer overflow if the calibration size is
greater than the destination buffer size.

Reject acdb data if the size is greater than the size of
destination buffer.

CRs-fixed: 548872
Change-Id: I354e9d4ce2d07df25513e8a4398826da0e21179e
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
(cherry picked from commit 10fc73c33d63496268e340ce83d677e26c7adf75)
ASoC: msm: Move ASM custom topology data out of Debugfs define

Move variables used for ASM custom topology out of
the debugfs define. ASM custom topology should be
enabled even when debugfs is not.

Change-Id: Ie16191c04d80981e48e11ddda71ccbe1ccbc18ca
CRs-fixed: 551711
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
(cherry picked from commit 6f0e8a2b10d2b4e002fa3ba5e7ec4db0e03c70d5)
ASoC: msm: Add argument to config_debug_fs definition

Add argument name missing from config_debug_fs
definition when debugfs not enabled.

Change-Id: Ib955b5fa60228d48ac6a2c73678f0d6cd766c8a1
CRs-fixed: 551711
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
(cherry picked from commit f512ef3735ccf70fa5874b50a0cb57099cb90051)
wcnss: additional checks to prevent unclocked register access

In case of a WDOG bite the WCNSS may not be propperly clocked,
make sure that all clock gating registers are checked before
accessing other registers for debug purpose.

Change-Id: I877da81fb10aa73926269ce5874b9a63ec6b30de
CRs-Fixed: 555035
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
(cherry picked from commit 31396f41bd6e079da0f2d72afea103d896716877)
mdss: display: support dcs read with length more than 8 bytes

Add multiple reads per transaction to support dcs read with length
more than 8 bytes.

CRs-Fixed: 525839
Change-Id: I06afa826f941f88c3fe6e2f799c10d12e01708fb
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
(cherry picked from commit 1cce9a3a57f61d3b3647c138756c4a03117c9ef4)
msm: Remove files no longer buildable under arch/arm/mach-msm

Removed the files to reduce efforts as we move driver code out of mach-msm

Change-Id: Ibe2107ae91cb282d0c9f3e7f564f50b6f7f8694f
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
(cherry picked from commit 4e8799e78d048a62397e25c2ff2da46045549fe2)
msm: camera: Checking an enum value greater than zero

An enum value cci_i2c_master is not checked to be greater than 0.
Add the check.

Change-Id: Ibe75ab7155def45d81b8127c5eda3fa2ed570bce
Signed-off-by: Xu Han <hanxu@codeaurora.org>
(cherry picked from commit ea34bac0734bc54551f30acbba8ee1fad7c986ee)
defconfig: Disable CONFIG_MSM_OCMEM_NONSECURE for msm8226

Disable CONFIG_MSM_OCMEM_NONSECURE, as secure environment
support is available on target.

CRs-Fixed: 563527
Change-Id: I5523df86193017dedfeddef7153229ff8a5962a0
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
(cherry picked from commit 70eb9e338b03e19e6c422414669d502f6bd480dc)
msm: ocmem: Do not return error when debugfs is disabled

The ocmem driver probe fails, when debugfs is disabled,
as it cannot create a debugfs root node. Do not return
and error, so that ocmem driver can function even when
debugfs is disabled

CRs-Fixed: 548301
Change-Id: I9dca715e9317d481b0dee1c7275c86a10e3cdce1
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
(cherry picked from commit 3c8bdd83bf4dfdd36f5eda00124a737e1df15b0e)
Merge "ASoC: msm: qdsp6v2: Copy frame data based on frame length"
Merge "msm: mdss: Validate input argument"
Merge "ARM: 7809/1: perf: fix event validation for software group leaders"
Merge "qdsp5: memset stack buffer allocation."
Merge "ASoC: msm: qdsp6v2: Fix buffer overflow in voice driver"
Merge "ASoC: msm: Move ASM custom topology data out of Debugfs define"