msm-camera: increase wait for config status.

wait for config status for 2 iterations before sending to upperlayers
in case of ERESTARTSYS error.

Signed-off-by: Katta Santhisindhu <kattas@codeaurora.org>
(cherry picked from commit d82e1c8e56dd3840a60f61409eaa5a34fdf28ea4)

Change-Id: Ia4a8ba39e7f5af205dc6271f9bfe2ae26009af06
Signed-off-by: Vivek Panwar <c_vpanwa@qti.qualcomm.com>
Signed-off-by: Vivek Panwar <vpanwa@codeaurora.org>
kernel/sys.c: fix stack memory content leak via UNAME26

Calling uname() with the UNAME26 personality set allows a leak of kernel
stack contents.  This fixes it by defensively calculating the length of
copy_to_user() call, making the len argument unsigned, and initializing
the stack buffer to zero (now technically unneeded, but hey, overkill).

CVE-2012-0957

Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: PaX Team <pageexec@freemail.hu>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
USB: gadget: diag: Ratelimit ep request queuing failure messages

USB diag gadget driver prints an error message and return error code
when ep request queue is failed.  Diag char driver drops this packet
but does not stop queuing further.  This results a flood of log messages
on serial console.  The target eventually crash due to watchdog timeout.

(cherry picked from commit ac3aa91a5a73df0d3bb5577ee4efc3c75958ef86)

CRs-fixed: 422601
Change-Id: I50bcccbd66c91a74f8625c26e26a9c257ba91783
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
msm : camera : Fix Livesnapshot issue

update buffer management logic incase
of Livesnapshot for vfe 2X

Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
(cherry picked from commit 7ca92a239f34d0ca05458c94c72d3bc826a4d398)

Change-Id: I6608e531d95c65ccffc68975ecf410587586a57d
Signed-off-by: Vivek Panwar <vpanwa@codeaurora.org>
ASoC: msm: Fix delay in switching from WFD session

- When a running WFD session is paused/disconnected, there is
  a delay of about 10-15 seconds in switching audio from WFD
  sink to target.
- pcm_write is blocked because pausing/disconnecting the WFD
  session closes the backend DAI before a new link is established.
- Avoid closing afe if front end PCM session is still active.

CRs-Fixed: 444163
CRs-Fixed: 425512
Signed-off-by: Satya Krishna Pindiproli <satyak@codeaurora.org>
(cherry picked from commit e8b8455d0679f78075176b6e451d4c948c53afbe)

Change-Id: I0e222dcd6bc3b1792315dca23863073bf2c1fe83
Signed-off-by: Vivek Panwar <vpanwa@codeaurora.org>
apq8064: add ram_console

Change-Id: Ic07a3301dead18d20f0cf7e6785fc6ccc8d66c55

Conflicts:
	arch/arm/mach-msm/board-8064.c
add mipi_cmd_hitachi_720p panel driver

Change-Id: I3055ca9aedf03423631c6d472c4e2909b924f949
apq8064_mtp: use mipi_cmd_hitachi_720p as panel

Change-Id: I40f79991a3609b40c447d05e9648c666fb5284fa
leds: pm8xxx: add pwm control sysfs files

PWM(frequency) is controlled by userspace

Change-Id: I6a3194de0b843841cdf56941dbcc43fcdc3a4f42
leds: pm8xxx: adjust the max brightness

This maps android brightness level 0 to 255 into driver backlight
level 0 to board max brightness with roudning

Change-Id: I760881fc25d7799afe55df8d213533c19432e81f
leds: pm8xxx: change adjust brightness routine

add pwm_adjust_brightness field for current control.

Change-Id: If0ba79324fcf50334f88f006a8ff30b59b7d4982
leds: pm8xxx: add calculation of blinking period and on/off

Change-Id: I718f506051ef367db08c7c8413e536cd5da22a95
leds: pm8xxx: change calculation of blinking period and on/off timing

Change-Id: I6adae65ae692c0a3d79bc45356ba8f880b3d00f3
Signed-off-by: Iliyan Malchev <malchev@google.com>
apq8064: pmic: fix red,green,blue leds for aries

Change-Id: I03793d47ce98b42c9440459fcb927dee6862189d
qup_i2c: set up node before calling of_i2c_register_devices

Device-tree framework for I2C expects adapter of device's
of_node to be initialized before adding I2C slave devices
on the bus.

Change-Id: I64af0b6bafb71ec94ad5acfe3034e9be887ebc47
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
spi_qsd: set bus number based on the cell-index property

When using device tree, the bus number needs to be set based on the
cell-index property rather than the 'id' from the platform device.
This makes sure that the SPI bus number is set correctly.

Change-Id: I4489c28363a7fd79f3bc3db76207a1bc8ef507cb
Signed-off-by: Kenneth Heitke <kheitke@codeaurora.org>
apq8064: add regulators for aries

Change-Id: I6f06df1903ffc0a1955e957964b03c3f6e41940c
leds-lm3530: fixes for aries

Change-Id: I6f70ee9d2351b1ea93962851e97a5ebfc54328ce