msm: camera_v2: protect cmd_ack_q around mutex.

Insertions and deletions into the session based command
ack queue need to be synchronized since they may be accessed
from more than one context.

CRs-fixed: 516599
Change-Id: Ia8b4c10666ceede41352baa652f28e7e4ed8e5fc
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
(cherry picked from commit 9c270f57165597736b32a526f238100695fad485)
wcnss: Invoke PIL only after completing intialization

Delay PIL operation until all data structures used by WCNSS SMD
interrupt handler are initialized. There could be a race condition,
where the SMD interrupt handler is called even before the WCNSS
trigger function is completed.

Change-Id: I6d83e7a67ebb3e7b6efe2b3fbfc2708cca355916
CRs-Fixed: 496402
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit 33ec3edbf292161dc07e56a4a085db2342b273fa)
wcnss: Add SAW2 SPM register to register dump list

When a WDI timeout happens, WLAN driver will initiate SSR; dumping these
registers before performing the reset helps to debug the root cause of
the timeout. Add SAW2 SPM register to the dump list.

Change-Id: Ic2f46be1efe7daf2e854425e05e1581eb1dd3dff
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit 5ed7607981999e9ff92d77bdde31dcbbc90b1b87)
wcnss: Fix WCNSS register dump when common_ss is power collapsed

When WCNSS common_ss is power collapsed, do not log A2XB registers or
any other registers within common_ss. Also make sure that, power
collapse is disabled while collecting the register dump.

Change-Id: I5ee1073ccae4bfbdcf099805d81d34899aaeba22
CRs-Fixed: 493920
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit bcc061868c7dc73dbdcc54438c1d94f09780faeb)
wcnss: Invoke chip level restart when WCNSS PIL fails

We have seen rare WCNSS PIL failure instances; and when the PIL is
retried thru smd tty interface, it goes thru fine. To collect more
information/dump on the PIL failure, we need to invoke subsystem
restart level 1.  We also need to collect the WCNSS register dump
on PIL failure.

Change-Id: I46bf15d574460da18bc6a638130e084faaa258c2
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit 356b5b4e5dbbc16cb12e9a4e39953341b1ab0414)
Merge "msm: camera_v2: protect cmd_ack_q around mutex."
Merge "wcnss: Invoke PIL only after completing intialization"
Merge "wcnss: Add SAW2 SPM register to register dump list"
Merge "wcnss: Fix WCNSS register dump when common_ss is power collapsed"
Merge "wcnss: Invoke chip level restart when WCNSS PIL fails"