msm: camera: Fix mctl release crash issue.

After mctl release initialize pointer to NULL to
avoid crash.

Change-Id: Ia3e0b1b809f85760a92b5248f402df589c6ace04
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Fix camera crash in msm_open_config

Add proper check before accessing mctl handle to
avoid camera crash.

Change-Id: I1413f086ab7d94fe223a814bb16867d1dcc0a4bf
CRs-Fixed: 481757
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
msm: camera: Fix camera crash when ctrl_q is empty

Add proper error condition if the list is empty and
return error value to upper layers instead of BUG_ON.

Change-Id: I89237e7a27d5fb1e1fd5f1a8a2dfd7ea9a1afff5
CRs-Fixed: 481759
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
ASoC: msm: Fix deadlock issue in external EC function

In external EC msm_routing_ext_ec_put function, when DAPM
mux update function is called backend and front end dai are
linked. At this point backend HW param function is called.
To update back end structure routing lock is acquired. This
fix is to avoid the deadlock situation.

CRs-fixed: 485954
Change-Id: I3e87f3b34c207a0ee3c4cda78d10bc3ac600b89b
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
Merge "msm: camera: Fix mctl release crash issue."
Merge "msm: camera: Fix camera crash in msm_open_config"
Merge "msm: camera: Fix camera crash when ctrl_q is empty"
Merge "ASoC: msm: Fix deadlock issue in external EC function"
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>
Merge "msm: pm-8x60: Use relative time for events"