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

Commit a553a8d0 authored by cherry.chai's avatar cherry.chai Committed by hecaiqiang
Browse files

Fix issue in camera GDSC operations



Change-Id: I95245ecc9064b724039b16ebccc5d1dee0f390dd
Signed-off-by: default avatarSuresh Vankadara <svankada@codeaurora.org>
Signed-off-by: default avatarcherry.chai <cherry.chai@oneplus.com>
(cherry picked from commit 4a45bb332e87afd9481c3415a4b9af328bfa4a8b)
parent b68e845a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -164,11 +164,9 @@ static int cam_bps_handle_pc(struct cam_hw_info *bps_dev)
			CAM_CPAS_REG_CPASTOP,
			hw_info->pwr_ctrl, true, 0x1);

		if ((pwr_status >> BPS_PWR_ON_MASK)) {
		if ((pwr_status >> BPS_PWR_ON_MASK))
			CAM_ERR(CAM_ICP, "BPS: pwr_status(%x):pwr_ctrl(%x)",
				pwr_status, pwr_ctrl);
			return -EINVAL;
		}
	}
	cam_bps_get_gdsc_control(soc_info);
	cam_cpas_reg_read(core_info->cpas_handle,
+2 −1
Original line number Diff line number Diff line
@@ -162,7 +162,8 @@ static int cam_ipe_handle_pc(struct cam_hw_info *ipe_dev)
			hw_info->pwr_ctrl, true, 0x1);

		if (pwr_status >> IPE_PWR_ON_MASK)
			return -EINVAL;
			CAM_ERR(CAM_ICP, "BPS: pwr_status(%x):pwr_ctrl(%x)",
				pwr_status, pwr_ctrl);

	}
	cam_ipe_get_gdsc_control(soc_info);