msm: camera: Cleanup msm generic buf queue handling

Clean-up the msm camera generic buff queue when all
client closes the handle and also provide init-deinit
ioctl for cpp to open-close the buff mngr handle.

Change-Id: Ie484174e0ffaee02e85c9c9cda8ac26103aaddd0
CRs-Fixed: 582261
Signed-off-by: Hariram Purushothaman <hpurus@codeaurora.org>
msm: camera2: cpp: Release vb2 buffer in cpp driver on error

When duplicate output is enabled, there is potential issue if
error is encountered in second output buffer. Under error condition
related to second output buffer is hit, the first output buffer is
not released properly.

Change-Id: I56f375a5783c54c450f5673818d15b393f469ef1
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
msm: pil-pronto: Move wcnss log on wdog bite function into a workqueue

The clock APIs called by wcnss log on wdog bite function may block wcnss
wdog bite interrupt handler, hence move the function into a workqueue.

CRs-Fixed: 608799
Change-Id: I23252f8cf3894e11c5479a96867fb5168ac7e7b5
Signed-off-by: Yue Ma <yuem@codeaurora.org>
defconfig: Enable WCNSS register dump on WCNSS bite

When Apps recieves a WDOG bite from WCNSS, collecting a register
dump of WCNSS is helpful to root cause the failure.

Change-Id: I08987fe6dd0f660607bf6b1edcf32b590f1cccaf
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
hwmon: qpnp-adc-current: Fix IADC RSENSE trim error

This is a workaround for a RSENSE trim issue that may
affect some of the parts. The RSENSE might be trimmed to a
incorrect value resulting in an incorrect current value.
The workaround will check if the trim values stored in the
registers are valid and if not use a default RSENSE value.

CRs-Fixed: 606553
Change-Id: I8d77a2c6c28e57f2e537d1c5b65d0e08d5fabd90
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
slim_ngd: Handle error flags before handling SENT flag

It's possible that error flags were set alongwith SENT flag for
TX transaction status. In such a scenario, error flag status should
be handled (and SENT flag should be cleared). Move error-flag
handling ahead of SENT flag handling to avoid interrupt being called
twice, and completion being set twice.

Change-Id: I13f28df0a0448790069bd103422dc1cd6c7ac408
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
wcnss: Sample WCNSS TOP AHB clock on WCNSS WDOG bite

Sample the wcss_top_ahb_clk and determine whether or not the clock freq
is zero when the issue occurs. This will help confirm the reason for
the system reset when Apps tries to access PMU registers for logging
purposes.

Change-Id: Ia4f34a38b7e8d237b9e5ae935d9ce339ca2d6ed1
Signed-off-by: Yue Ma <yuem@codeaurora.org>
ASoC: msm: Use 16K sample rate for RFECNS

To enable record with an RFECNS device use a 16K
sample rate.

Change-Id: Ib9c6a4605f6a7f9e5f4c25280e0cc646459815fc
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
msm: mdss: fix display corruption on 720p panel

The MDP dma source size should match with the panel
resolution, instead of using the overlay size which
can be different from the panel size.

Change-Id: I4c9f8ea4e0d12e739646fe3d67dad299d3b3245b
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
msm: mdss: fix the display reset error

Increase the dma stop time out value as stopping operation
may take longer than the previous defined value. Gracefully
handle the time out condition to allow it to retry when
the next frame comes in.

Change-Id: I5120f309db2dbaeebef3b2878caa13cec17c9e1f
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
Merge "wcnss: Sample WCNSS TOP AHB clock on WCNSS WDOG bite"
Merge "defconfig: Enable WCNSS register dump on WCNSS bite"
Merge "msm: mdss: fix the display reset error"
Merge "hwmon: qpnp-adc-current: Fix IADC RSENSE trim error"
Merge "msm: pil-pronto: Move wcnss log on wdog bite function into a workqueue"
Merge "slim_ngd: Handle error flags before handling SENT flag"
Merge "msm: camera2: cpp: Release vb2 buffer in cpp driver on error"
Merge "msm: camera: Cleanup msm generic buf queue handling"
Merge "ASoC: msm: Use 16K sample rate for RFECNS"
Merge "msm: mdss: fix display corruption on 720p panel"