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

Commit e30e1341 authored by Zhen Kong's avatar Zhen Kong Committed by Gerrit - the friendly Code Review server
Browse files

qseecom: Use qseecom_ta_heap as cacheable for cmnlib & app loading



Use qseecom_ta_heap as cacheable for cmnlib & app loading.

Change-Id: I7fafaf3757053673a24a4616c4fc7006d00b5466
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent 0c8937f6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4143,6 +4143,7 @@ static int __qseecom_allocate_img_data(struct ion_handle **pihandle,
	struct ion_handle *ihandle = NULL;
	u8 *img_data = NULL;
	int retry = 0;
	int ion_flag = ION_FLAG_CACHED;

	do {
		if (retry++) {
@@ -4151,7 +4152,7 @@ static int __qseecom_allocate_img_data(struct ion_handle **pihandle,
			mutex_lock(&app_access_lock);
		}
		ihandle = ion_alloc(qseecom.ion_clnt, fw_size,
			SZ_4K, ION_HEAP(ION_QSECOM_TA_HEAP_ID), 0);
			SZ_4K, ION_HEAP(ION_QSECOM_TA_HEAP_ID), ion_flag);
	} while (IS_ERR_OR_NULL(ihandle) &&
			(retry <= QSEECOM_TA_ION_ALLOCATE_MAX_ATTEMP));