msm: camera: Add support for bus overflow recovery.

In case of bus overflow, try to recover by stopping CAMIF
and overall VFE reset and restore the IRQ mask.

CRs-Fixed: 510209
Change-Id: I18d5d0c22ffed94f559717500901ff23ce19c0ca
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
(cherry picked from commit c3a15ed07f92e1cad6ef3d55e41fa590c15f31c9)

Signed-off-by: Satish Kamuju <skamuj@codeaurora.org>
msm: camera: Notify application in case of CAMIF error.

In case of CAMIF errors, send the error notification so that
the application can shutdown the camera pipeline.

Change-Id: I08e9e150e5e08905e34fb342c611f789eccc4e74
CRs-Fixed: 510209
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
(cherry picked from commit 8641b2821d2d1f0000c49e9c7017cca6e9979663)

Signed-off-by: Satish Kamuju <skamuj@codeaurora.org>
msm: camera: Notify application in case of bad state.

In case, the bus overflow keeps happening beyond a
predefined threshold, stop recovery and notify the
user about the error so that camera can be gracefully
shutdown.

CRs-Fixed: 510209
Change-Id: I4a3ff26cd73a20511174fe7fc9d0b46af2986249
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
(cherry picked from commit 6a5606b85cd601af351b3b7256b176aa403638fc)

Signed-off-by: Satish Kamuju <skamuj@codeaurora.org>
msm: camera: Clear frame stucture before use

Clear frame structure before use and avoid unnecessary side
effects

CRs-Fixed: 563447

Change-Id: I9acd436f30c65c01fa366328f7227a2045f42657
Signed-off-by: Ashok Raj Deenadayalan <adeena@codeaurora.org>