From 7eaf475ecdf649badc5cea5aa6c601ede5130a80 Mon Sep 17 00:00:00 2001
From: Rajesh Bondugula <rajeshb@codeaurora.org>
Date: Thu, 17 Apr 2014 16:22:52 -0700
Subject: [PATCH 0996/1561] ARM:dts:msm: update generic cam entries

remove kernel sensors drivers for imx135
and s5k3l1yx.

Change-Id: Ie72fcfaccc4aa0a7fa0e1e1f18a4ab1cb9b05b8c
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org
From 9990c9391dee9dac8bf655c235302740395f9445 Mon Sep 17 00:00:00 2001
From: Hariram Purushothaman <hpurus@codeaurora.org>
Date: Tue, 26 Nov 2013 15:23:38 -0800
Subject: [PATCH 0020/1561] msm: camera: Fix unterminated of_device_id table

Add a NULL table entry at end for msm, ispif and
msm_generic_buf_mgr device tree match tables.

Change-Id: I05f08c77a8a25112cd17955e98018ac88b7a834c
CRs-Fixed: 582110
Signed-off-by: Hariram Purushothaman <hpurus@codeaurora.org>
[PATCH 0020/1561] msm: camera: Fix unterminated of_device_id table

Add a NULL table entry at end for msm, ispif and
msm_generic_buf_mgr device tree match tables.
(next)

Change-Id: I6109e9ac4e8a4b09bf51418380b2f5e4df230f18
camera_v2: jpeg_10: Set state before hw start

The setting of driver state is now done before the JPEG
engine is started.

Signed-off-by: Kamen Kirov <kkirov@codeaurora.org>
CRs-fixed: 598605
Change-Id: I0960c925386d22efb11aebf99ad7718abd4f83e8
camera_v2: jpeg_10: Set state before hw start

The setting of driver state is now done before the JPEG
engine is started.

Signed-off-by: Kamen Kirov <kkirov@codeaurora.org>
CRs-fixed: 598605
Change-Id: I0960c925386d22efb11aebf99ad7718abd4f83e8
(2/2)
camera_v2: jpeg_10: Fix return value of
 MSM_JPEG_IOCTL_HW_CMD

The ioctl MSM_JPEG_IOCTL_HW_CMD was returning -1,
when using MSM_JPEG_HW_CMD_TYPE_WRITE due to incorrect input
validation logic.

Signed-off-by: Kamen Kirov <kkirov@codeaurora.org>
Change-Id: Ib47973fe6e2c398ef11e6ec3179388a7823e0b3f
msm: Fix RDI1 interface for VFE32

The RDI registers are not defined properly
for VFE32. Fixing this issue by making the
register addresses properly.

Change-Id: I19fb50a53ae239b5fc306684b5bb6c6f65c61382
Signed-off-by: Abhishek Kondaveeti <akondave@codeaurora.org>
msm: camera: check buffer validity in isp buf mgr

When someone asks for buffer from isp_buf_mgr, check
if buffer is valid. This is done by verifying if it is
present in the list of buffers for this session.

This will potentially avoid few kinds of page faults.

Change-Id: I787a9503853706be65f1960779144d4b62925865
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
msm: camera: Fix sensor info parsing logic

Fix parsing logic as below to fix camera preview rotation
and camera app detection in UI.

0-7: media entity flags
8-15: mount angle
15-23: facing

Change-Id: If5c386abb8507743486e6a286b84d0542a06bace
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm:camera: Limit prints in default cases

Change pr_err to pr_err_ratelimited in default
case prints of userspace ioctl. pr_err would
keep printing when passing invalid parameters
in ioctl which would cause watchdog reset.

Change-Id: Ic35f63c4e8923aa49ac013a59af08cae4d3d176b
CRs-fixed: 586318
Signed-off-by: Yiduo Wang <yiduow@codeaurora.org>
msm: camera: Set same timestamp for all streams.

In order to get same timestamp for all stream, we store
timestamp on first AXI irq and apply the same one to
the others for the same frame.

FR: 18777

Change-Id: Ide1d3af8a485163998c053511243d4436e64573a
Signed-off-by: Konstantin Motov <kmotov@codeaurora.org>
Revert "msm: camera2: add api for set actuator for
 manual af".

This reverts commit a5d15da46bc1fa3467310e2c5aa998c365a78c00.

Change-Id: Id237577daf723e8e60600615c8202453d6337485
Signed-off-by: Panwar Vivek <vpanwa@codeaurora.org>
msm: cpp: Fix potential dereference of NULL pointer

Pointers should be checked for NULL before they are
dereferenced. If it is not done segmentation fault
can appear.

Change-Id: I8b36f3553292b41386e231f12867ff78f8e2379d
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
msm: camera2: cpp: Append frame buffers to the list

In case of late buffer allocation, allocated buffers
have to be appended to the existing queues.

Change-Id: Ie14f00038e86b9d7c8caa01587a2ed1aee7d80e8
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>