From 87fff904c1b404b8184c72eaa2a3db8a4369b79b Mon Sep 17 00:00:00 2001 From: Tejas Prajapati Date: Tue, 5 Jan 2021 17:26:47 +0530 Subject: [PATCH] msm: camera: cdm: check reset status for error If there are any reset errors for the CDM, CDM should send error to UMD upon reset failure. Updated the error status with relevant error code. CRs-Fixed: 2882732 Change-Id: I12e746f71b1a294aa4e7ef540f39aec91fb44648 Signed-off-by: Tejas Prajapati --- drivers/cam_cdm/cam_cdm_hw_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cam_cdm/cam_cdm_hw_core.c b/drivers/cam_cdm/cam_cdm_hw_core.c index f068f9f51c59..61086ae5d13c 100644 --- a/drivers/cam_cdm/cam_cdm_hw_core.c +++ b/drivers/cam_cdm/cam_cdm_hw_core.c @@ -1149,7 +1149,7 @@ static void cam_hw_cdm_reset_cleanup( test_bit(CAM_CDM_FLUSH_HW_STATUS, &core->cdm_status)) flush_hw = true; - if (test_bit(CAM_CDM_ERROR_HW_STATUS, &core->cdm_status)) + if (test_bit(CAM_CDM_RESET_ERR_STATUS, &core->cdm_status)) reset_err = true; for (i = 0; i < core->offsets->reg_data->num_bl_fifo; i++) {