Parcourir la source

msm: camera: isp: Fix frame header alignment issue

Update frame header iova correctly so that it's 16 byte aligned.

CRs-Fixed: 2751309
Change-Id: I4af0eb5f12bcd92ba40077d9d62a9e308fa06f8d
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram il y a 4 ans
Parent
commit
24c71ea45d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

+ 1 - 1
drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

@@ -6111,7 +6111,7 @@ static int cam_ife_mgr_util_insert_frame_header(
 	/* frame header address needs to be 16 byte aligned */
 	if (frame_header_iova % 16) {
 		padded_bytes = (uint32_t)(16 - (frame_header_iova % 16));
-		iova_addr += padded_bytes;
+		frame_header_iova += padded_bytes;
 	}
 
 	prepare_hw_data->frame_header_iova = frame_header_iova;