msm: camera: Enable CAMIF SOF in case of non dual camera usecase.

When Dual camera usecase is enabled, the ISPIF PIX SOF is enabled
by default to synchronize with the RDI interfaces.
But in non dual camera usecases, use CAMIF SOF IRQ to increment
the frame IDs being embedded inside the output frames.
Sometimes the SOF IRQs of frame 'n' is clubbed along with the
Output IRQs of the frame 'n-1'. Thus although the output IRQs
are supposed for frame 'n-1' it results in a frame ID of 'n' which
will cause incorrect behaviour downstream. Correct this behaviour
by checking the SOF and Output status bits in the IRQ Mask and
adjust the frame ID accordingly.

CRs-Fixed: 481721
Change-Id: If7a9db2337febf10e89d44c58b9d980d874c69b6
Signed-off-by: Sai Kumar Sanagavarapu <ssanagav@codeaurora.org>
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Merge "mfd: pm8xxx-misc: Add API to read PMIC registers"
power: pm8xxx-ccadc: Cancel/schedule the calibration work in suspend/resume

Cancel the ccadc calibration work in suspend as there is
a possibility that the device can suspend while executing
the calib work. This may lead to an incomplete hardware
configuration.

CRs-Fixed: 487268
Change-Id: I86dfffeaa7a60784d16243ffd7273c3dc8571bda
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
msm: pm-8x60: Use relative time for events

There is a bug when adjusting for event wakeups. The adjusted time
is being set in absolute mode incorrectly. Instead just use relative
times.

Without this core wakeups may not happen on time.

CRs-fixed: 486466
Change-Id: If625f25bd573b05befb6e0f922c80db646428b86
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
Signed-off-by: Venkat Devarasetty <vdevaras@codeaurora.org>
msm: camera: register settings for OV8825 sensor

Added a new mode with 1080P resolution for camcoder. so
this mode will be a new addition to already existing quarter
and full size resolutions on sensor ov8825.

CRs-Fixed: 483233
CRs-Fixed: 487310

Change-Id: I23414cab27db6afe827b2af675c1762df73e736c
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
msm_serial_hs: Fixing issue during UART shutdown

During UART port close in msm_hs_shutdown(), flag is_shutdown is
set as true and then UART interrupt is disabled and UART irq line
is freed. This is causing corner case in which even if uart shutdown
is in progress, UART interrupt can come as the UART interrupt is not
disabled and UART irq line not freed at this point. As flag
is_shutdown is set as true in msm_hs_shutdown() and then if UART
interrupt comes, it is hitting BUG_ON in UART Interrupt handler
msm_hs_isr(). To fix this issue, disable the UART irq and free
the UART irq line at the beginning of the msm_hs_shutdown() and
then set the flag is_shutdown.

In msm_hs_shutdown, disabling UART Interrupt and setting flag
is_shutdown is done with uart spinlock acquired. There is a
possibility that on other core, msm_hs_isr() might need to wait
for the same uart spinlock and later when msm_hs_isr() is executed
BUG_ON is hit. As by this time all UART Interrupt is disabled,
hence removing the BUG_ON and instead keep prints to notify the
same.

CRs-Fixed: 487945
Change-Id: I0a19b8f3098f1c9215935ca7fa9d9e5895c44a8c
Signed-off-by: Saket Saurabh <ssaurabh@codeaurora.org>
msm: camera: Check if client is NULL before calling ion_free

NULL check was added inorder to prevent a target reboot in ion_free
in case client is already NULL

Change-Id: I263f56ff06ad7907c459b4f7254fc1435a41c61d
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
Merge "msm: vidc: Update sub_anchor_mv buffer size"
msm: camera: Update focus register settings for ov8825

The sensor driver register settings are updated to
make focus working

Change-Id: I188d368984216dbdfdfae354d09c45923ea11f52
CRs-Fixed: 488423
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Merge tag 'AU_LINUX_ANDROID_JB_2.5.04.02.02.040.315' of git://codeaurora.org/kernel/msm into cm-10.1

Conflicts:
	drivers/media/video/videobuf2-msm-mem.c
	drivers/mmc/core/core.h
	include/linux/mmc/host.h
	kernel/signal.c

Change-Id: Ie4314058c01f0bead5318a4124a1c7fdcaf534db

Conflicts:
	drivers/media/video/videobuf2-msm-mem.c