Loading drivers/media/platform/msm/camera/cam_icp/hfi.c +6 −3 Original line number Diff line number Diff line Loading @@ -42,6 +42,9 @@ #define HFI_MAX_POLL_TRY 5 #define HFI_MAX_PC_POLL_TRY 50 #define HFI_POLL_TRY_SLEEP 20 static struct hfi_info *g_hfi; unsigned int g_icp_mmu_hdl; static DEFINE_MUTEX(hfi_cmd_q_mutex); Loading Loading @@ -513,8 +516,8 @@ void cam_hfi_disable_cpu(void __iomem *icp_base) uint32_t val; uint32_t try = 0; while (try < HFI_MAX_POLL_TRY) { data = cam_io_r(icp_base + HFI_REG_A5_CSR_A5_STATUS); while (try < HFI_MAX_PC_POLL_TRY) { data = cam_io_r_mb(icp_base + HFI_REG_A5_CSR_A5_STATUS); CAM_DBG(CAM_HFI, "wfi status = %x\n", (int)data); if (data & ICP_CSR_A5_STATUS_WFI) Loading @@ -523,7 +526,7 @@ void cam_hfi_disable_cpu(void __iomem *icp_base) * and Host can the proceed. No interrupt is expected from FW * at this time. */ msleep(100); msleep_interruptible(HFI_POLL_TRY_SLEEP); try++; } Loading Loading
drivers/media/platform/msm/camera/cam_icp/hfi.c +6 −3 Original line number Diff line number Diff line Loading @@ -42,6 +42,9 @@ #define HFI_MAX_POLL_TRY 5 #define HFI_MAX_PC_POLL_TRY 50 #define HFI_POLL_TRY_SLEEP 20 static struct hfi_info *g_hfi; unsigned int g_icp_mmu_hdl; static DEFINE_MUTEX(hfi_cmd_q_mutex); Loading Loading @@ -513,8 +516,8 @@ void cam_hfi_disable_cpu(void __iomem *icp_base) uint32_t val; uint32_t try = 0; while (try < HFI_MAX_POLL_TRY) { data = cam_io_r(icp_base + HFI_REG_A5_CSR_A5_STATUS); while (try < HFI_MAX_PC_POLL_TRY) { data = cam_io_r_mb(icp_base + HFI_REG_A5_CSR_A5_STATUS); CAM_DBG(CAM_HFI, "wfi status = %x\n", (int)data); if (data & ICP_CSR_A5_STATUS_WFI) Loading @@ -523,7 +526,7 @@ void cam_hfi_disable_cpu(void __iomem *icp_base) * and Host can the proceed. No interrupt is expected from FW * at this time. */ msleep(100); msleep_interruptible(HFI_POLL_TRY_SLEEP); try++; } Loading