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 <kartanan@codeaurora.org>
This commit is contained in:
Karthik Anantha Ram 2020-08-07 10:09:49 -07:00
commit 24c71ea45d

View file

@ -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;