ARM: dts: msm: Added torch-source for 8974 mtp

Torce mode is not supported on 8974 mtp.
Add torch-source to led-flash in mtp dtsi.

Change-Id: Idaa07d1e722b8a77dacee0b629e95f2a76eb2bc8
Signed-off-by: Xu Han <hanxu@codeaurora.org>
msm: vidc: Fix a race condition in masking interrupts

Fix a race condition when interaction with firmware happens
in following sequence:

1. Firmware writes IDLE message into the message queue.
2. Driver writes a new command into command queue.
3. Firmware reads this command and starts processing it.
4. Driver checks if command queue is empty and finds it empty.
5. Firmware writes the response (of the command sent in 2) in
   message queue. Firmware also writes another IDLE message and
   sets the idle register.
6. Driver check if the IDLE register is set and finds it set.
7. Driver masks the interrupts. Since interrupts are masked,
   driver misses the response written by firmware in 5.

This race condition is fixed by checking if message queue is
empty or not between 6 and 7.

Change-Id: I4aa17cfc5fd9e33f6b41b6c1b12625789ff02283
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>

Conflicts:

	drivers/media/platform/msm/vidc/venus_hfi.c
Merge "ASoC: wcd9xxx: add device_reset functions for taiko and tapan"
qseecom: Add checks for user space buffer pointers

Validate pointers send from user space and pointers
embedded within the mesasge sent from user space.

Change-Id: I1be54924ef3d301908af6e8d4e6506f2aa7f6428
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
msm: camera: Return current lens position in actuator driver

Actuator user space driver requires lens position after move focus
call returns. Return lens position as part cfg params for move focus
ioctl.

Change-Id: I8fdce16c192db8685b1a2ac66a2cba052d64423c
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
(cherry picked from commit d3eac150c2668f54931c355d4f82337b7ad3e5f4)
msm:camera: Limit prints in isp

Change every pr_err in msm_vfe_process_error_status to
pr_err_ratelimited to avoid watchdog reset

Change-Id: I248ac7f2d5c64a2743ba223eda77a63888ed1e0f
CRs-fixed: 584604
Signed-off-by: Yiduo Wang <yiduow@codeaurora.org>
(cherry picked from commit 52ed86e0e72116dc5e59ee38485d1d0a26b5855b)
msm: camera2: cpp: Set exact size for firmware loading.

The poll reads after during and after firmware loading fails.
This is because the exact size of firmware changes with the
version of the firmware. This change uses the firmware size
based on actual firmware file being loaded.

Change-Id: I949954347a48d0b388b11b3c81fd5d1a4627cbf7
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
(cherry picked from commit 7f0705c6eb86ceca1adec45bbaeb44bcd0b87079)
Merge "ARM: dts: msm: Added torch-source for 8974 mtp"
Merge "msm: vidc: Fix a race condition in masking interrupts"
Merge "msm: camera: Return current lens position in actuator driver"
Merge "msm:camera: Limit prints in isp"
Merge "msm: camera2: cpp: Set exact size for firmware loading."
Merge "qseecom: Add checks for user space buffer pointers"
Merge "msm: vidc: avoid re-initialize of v4l2 spin lock"
msm: mdss: Returning NOTIFY_SUSPEND while polling NOTIFY_UPDATE

mdss_fb_update_notify does not return Suspend in NOTIFY_UPDATE
case. Daemon polls on NOTIFY_UPDATE but does not get Suspend
notification. Hence Daemon would not stop polling.

Suspend Case is added in UPDATE case.

Change-Id: Iaeaf819a6849acda2eb7eb78f0fc3306866d1b64
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
usb: ehci-msm-hsic: avoid double free of platform data

When device tree is enabled, the platform data structure is allocated
via devm_kzalloc and assigned it to pdev->dev.platform_data. This
memory is freed twice during platform device unregistration in
devres_release_all() and platform_device_release() functions. Assign
pdev->dev.platform_data to NULL in device driver remove method to
avoid this double free.

Change-Id: I713e0fa97e00124166a727718c0a31ab5e2c2d3b
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
input: touchscreen: add Kconfig & Makefile entries for atmel_maxtouch_ts

Add entries so compilation can be chosen for latest
Atmel touchscreen driver.

Change-Id: Ib63a56215e52cc80cb8532c50b16112d39c1e6f7
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Merge "ASoC: msm: Do not allow commands during gapless transition"
Merge "msm: vidc: Fix unsupported codec error from video driver"
Merge "msm: mdss: fix overlay set issue on 8x10"