msm-camera: increase wait for config status

wait for config status for 2 iterations before sending to upperlayers
in case of ERESTARTSYS error.

Change-Id: I938eee5316382a18524fbd7c7c3f1c6715d581dc
Signed-off-by: Katta Santhisindhu <kattas@codeaurora.org>
msm: camera: Fixing multiple stability issues:

    1. Add state for power up.
    2. Adding state check for sensor power up and down.
    3. Fix kernal crash due to NULL mctl_cmd.
    4. Fix for actuator crash.
    5. Add NULL pointer check for regulator.

Change-Id: I33d0ac14ff933872a94e32b25ecb50da56ff7b02
Signed-off-by: Krupal Divvela<kdivvela@codeaurora.org>
msm: camera: Fix NULL pointer dereference while CSIC config

Fix NULL pointer dereference from CSIC config.

CRs-Fixed: 416473

Change-Id: I7d76742de16eb714af357957b53fb8e0ca7d4bb3
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
msm: camera: Remove duplicate video device list initialization.

When a video device is registered through video_register_device,
the fh_lock and fh_list variables are already initialized. So we
dont need to explicitly initialize them during v4l2 event queue
setup. Doing this overwrites the fh_list in some cases like
mctl pp node, where each instance can have its own eventHandle but
linked to the mctl pp video node. This can cause video device list
corruption in some usecases like HDR. Remove this extra
initialization for v4l2 nodes which register their video devices.
For native nodes using v4l2 event handles, add the initialization
before setting up the v4l2 event queue.
Move the function setup_v4l2_event_queue and
destroy_v4l2_event_queue into msm_cam_server.c for better code
organization.

CRs-fixed: 443659

Change-Id: Iad6a4108f1c970fdf5a64300b9a3194bc48b8a8b
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>