msm: camera: icp: Add timeout for hfi commands and fix hardcode values
This patch does the following changes:
1.ICP driver waits indefinitely for the hfi commands, which
can lead to camera hang if firmware does not respond.
Hence using the wait_for_completion_timeout instead
of wait_for_completion.
2. Use the HFI shared memory region information from camera
memory manager instead of hard coded values.
3. Add debugfs entry to enable runtime debug on A5 core.
4. Remove msleep and use readw_poll_timeout for reading
the HFI_REG_ICP_HOST_INIT_RESPONSE status.
Change-Id: Id4987e62feff4ccbd06266a18c669cbb4d90ca2d
Signed-off-by:
Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
Loading
Please register or sign in to comment