diag: Fix log, event and msg mask status in control packets

The status field in the logs, events and msg mask update control
packets is set incorrectly to a defaul t value. This patch adds
the correct status value in the control packet sent from Apps
to peripherals.

Change-Id: I7850db055b5c4aad0d3e6ffceb6411be03090091
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
diag: Increase the maximum number of SSIDs per msg mask range

Diag was using a max ssid range of 100. This has increased due
to addition of new SSIDs. This patch increases the range to 200
and adds checks to limit the SSID masks to this range. This
changes the order of sending the feature masks, sending it before
the msg masks to let the peripherals know the features Apps
support.

Change-Id: Id913712b29208054ab036743ffc4122699501bc3
Signed-off-by: Katish Paran <kparan@codeaurora.org>
diag: Change implementation of diag log masks

Currently, the structure of diag log masks can lead to buffer
corruption when there is huge different between the log masks
of the Apss processor and the peripherals. Make changes to
log masks to be of constant size.

Change-Id: I9920bbcc19e75c10ec7267808c9fc4afaafeff5b
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
Merge "diag: Fix log, event and msg mask status in control packets"
Merge "diag: Increase the maximum number of SSIDs per msg mask range"
msm: board-8064: configure csi interface on adp2 platform

Initialize and configure the csi interface for transferring
video frames from the camera sensor on adp2 platform

Change-Id: I8bc5debfc2b9b78e721d73c610fd60bc957490f7
Signed-off-by: Joveen Joseph Thomas <joveenthomas@codeaurora.org>
msm: vfe: modify vfe to enable camera on adp2 platform

VFE related changes to suit the video frame handling
on adp-2 platform.

Change-Id: I7204254cad2c6179eb7695cf70f2b42fe44712d9
Signed-off-by: Joveen Joseph Thomas <joveenthomas@codeaurora.org>
msm: csi: switch to csi0 interface for camera

Configure CSI0 interaface to enable the transfer of
video frames from camera sensor.

Change-Id: I237023f247e86a1d20e0d36e2446a5940e452355
Signed-off-by: Neasa Ni Cheallaigh <neasan@codeaurora.org>
Merge "msm: board-8064: configure csi interface on adp2 platform"
Merge "msm: vfe: modify vfe to enable camera on adp2 platform"
Merge "diag: Change implementation of diag log masks"
futex-prevent-requeue-pi-on-same-futex.patch futex: Forbid uaddr == uaddr2 in futex_requeue(..., requeue_pi=1)

If uaddr == uaddr2, then we have broken the rule of only requeueing from
a non-pi futex to a pi futex with this call.  If we attempt this, then
dangling pointers may be left for rt_waiter resulting in an exploitable
condition.

This change brings futex_requeue() in line with futex_wait_requeue_pi()
which performs the same check as per commit 6f7b0a2a5c0f ("futex: Forbid
uaddr == uaddr2 in futex_wait_requeue_pi()")

[ tglx: Compare the resulting keys as well, as uaddrs might be
  	different depending on the mapping ]

Fixes CVE-2014-3153.

Reported-by: Pinkie Pie
Signed-off-by: Will Drewry <wad@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Change-Id: I9ee5c8a87cc43c7b1e1dc2796949e7c20c74ddf4
Git-commit: e9c243a5a6de0be8e584c604d353412584b592f8
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Divya Sharma <c_shard@codeaurora.org>
Merge "msm: csi: switch to csi0 interface for camera"
Merge "futex-prevent-requeue-pi-on-same-futex.patch futex: Forbid uaddr == uaddr2 in futex_requeue(..., requeue_pi=1)"
adv7180: update  ADV7180 driver

This patch mirrors the adv7180 driver from
github-analogdevicesinc/adv7280 without modifications
in order to add drivers support for ADV7282.

Change-Id: I190160c358081358433dd13f18422668d9902ed8
Git-commit:03f1fa76fe7fce8a6d68aa0a054c8d4d2100daf0
Git-repo: https://github.com/analogdevicesinc/linux/
Signed-off-by: Neasa Ni Cheallaigh <neasan@codeaurora.org>
adv7180: move adv7180 driver to drivers/media/video

Move ADV7180 driver to drivers/media/video with other
v4l2 sub-device drivers.

Change-Id: I0bdf2c68e6a690a1c975351e14f86ccf3c654033
Signed-off-by: Neasa Ni Cheallaigh <neasan@codeaurora.org>
adv7180: modify ADV7180 Driver for ADP Platform

Limited modifications were made to
remove functionality not supported by current
version of V4L2 Framework.

Change-Id: I1dbc84e2b69159c21c5d4b3c21dc35c012cb92f3
Signed-off-by: Neasa Ni Cheallaigh <neasan@codeaurora.org>
msm: board-8064: add adv7282 i2c device info for adp-m platform.

Added ADV7282 device to I2C devices for adp-m platform
Added ADV7282 power and reset controls platform data.

Change-Id: I79f5d40b904cc79448edd2a1ffef4d24aa320446
Signed-off-by: Neasa Ni Cheallaigh <neasan@codeaurora.org>
msm: av_manager : Add AV Device Manager

Add AV Device Manager module to act as bridge driver
to V4L2 subdevice drivers for AV and camera inputs on
adp-platform.

Change-Id: I62094f55b0dde82c2d867f3c59f7e9e10a2ddf2c
Signed-off-by: Neasa Ni Cheallaigh <neasan@codeaurora.org>
adv7180: Add control for Power and Reset pins

Add platform data for power and reset pin control.

Change-Id: I4ac450a7871314870f6f567d34e3aa79fe8de715
Signed-off-by: Neasa Ni Cheallaigh <neasan@codeaurora.org>