msm: dcvs: fail gracefully if TZ does not support dcvs

If dcvs attempts to initialize on a system where TZ does not support
dcvs, it will eventually cause a crash. Prevent this by disabling
dcvs if TZ does not successfully initialize its part of dcvs.

Change-Id: Ic9cd361243c03c3832133614c4847a2815b0bbb4
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
diag: Add debug prints in error cases

In some error cases, returning error code without printing
any message which makes debugging difficult. Add more
extensive debugging prints in error cases.

Change-Id: I1bc147c4420942ecda953ab512f639f6683e511d
CRs-Fixed: 495436
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
diag: Fix race condition in diagchar driver

diag driver maintains socket logging process in global driver
structure which is manipulated in switch_logging and in close
file_operation.
There is a possibility of race while clearing the socket logging
process in close operation and sending signal in switch_logging
operation. Adding lock to serialize the two operations.

CRs-Fixed: 495063
Change-Id: I0064509c9ace18a8ff40c5a744363546a9021612
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
msm: rotator: Extend fast YUV invalid checker for 2-pass

For 2-pass mode, we need to check for the fast YUV constraints
separately for both the 1st and 2nd pass. Make change to extend
the fast YUV invalid checker to 2-pass mode.

CRs-fixed: 504007
Change-Id: I7ef96ff29423fbd5cc454e8fd125b4bb1a9d59e1
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
msm_serial_hs: Rx discard flush timeout

While configuring the uart buadrate using set_termios
function, timeout is occuring for rx discard flush
operation. This is due to the driver is waiting for
less time for the DMA call back to occur after programing
the DMA register with the discard flush command.

To overcome this issue increased the timeout to 300ms.

Change-Id: I60db1f9eea8bb59fab4024e5f5dfcbcdcde253bb
Signed-off-by: Dilip Kota <c_dkota@codeaurora.org>
msm: board-8930-pmic: Disable pmic noise gate.

The noise gate is resulting in intermittent audio issue,
hence disable it.

CRs-Fixed: 428933
Change-Id: I0fbac13c40f06c1ad8a537bd91e5272be844fd92
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Merge "msm: dcvs: fail gracefully if TZ does not support dcvs"
Merge "msm_serial_hs: Rx discard flush timeout"
msm_fb: Fail fb2 open during suspend if ref_cnt is zero

Fail fb2 open during suspend if the ref_cnt for fb2 is zero
currently.

CRs-fixed: 475310
Change-Id: Ie5dd7c2dadecb489423cca1e2ff8276edc6314d7
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
mfd: wcd9xxx: Let system suspend and lock it later

When wcd9xxx codec receives IRQ, codec driver acquires suspend lock to
prevent system from entering suspend and waits until either system is
already awake or is awoken.
However if power management interface is already in the middle of calling
suspend chains, codec cannot lock suspend.
For this case, let the power management interface to proceed suspend and
make codec driver not to handle IRQ for now so unhandled IRQ would raise
shortly again.

Change-Id: Ia06394a890fe0c5fbde65d482d584346d167132a
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Merge "msm: rotator: Extend fast YUV invalid checker for 2-pass"
Merge "msm: board-8930-pmic: Disable pmic noise gate."
Merge "mfd: wcd9xxx: Let system suspend and lock it later"
Merge "msm_fb: Fail fb2 open during suspend if ref_cnt is zero"
Merge "diag: Fix race condition in diagchar driver"
Merge "diag: Add debug prints in error cases"