Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2743a0db authored by Lakshmi Narayana Kalavala's avatar Lakshmi Narayana Kalavala
Browse files

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: default avatarLakshmi Narayana Kalavala <lkalaval@codeaurora.org>
parent 6a9b4102
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment