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

Commit 78394bf2 authored by Ghanim Fodi's avatar Ghanim Fodi
Browse files

Update IPA and GSI driver techpack snapshot



Upate the driver to msm-5.4 kernel snapshot as of
'commit <9195ca33> ("drivers: thermal:
Add config sysfs entry support for thermal zones")'.

Change-Id: I611b232f4206f2d95c33029ecca0bc5793c88707
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 20819ba5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3337,9 +3337,10 @@ static int ipa3_q6_clean_q6_rt_tbls(enum ipa_ip_type ip,
	}

	desc = kcalloc(2, sizeof(struct ipa3_desc), GFP_KERNEL);
	if (!desc)
	if (!desc) {
		retval = -ENOMEM;
		goto free_empty_img;
	}

	cmd_pyld = kcalloc(2, sizeof(struct ipahal_imm_cmd_pyld *), GFP_KERNEL);
	if (!cmd_pyld) {
+14 −5
Original line number Diff line number Diff line
@@ -6609,11 +6609,20 @@ int ipa3_tag_process(struct ipa3_desc desc[],
	u32 retry_cnt = 0;
	struct ipahal_reg_valmask valmask;
	struct ipahal_imm_cmd_register_write reg_write_coal_close;
	int req_num_tag_desc = REQUIRED_TAG_PROCESS_DESCRIPTORS;

	/**
	 * We use a descriptor for closing coalsceing endpoint
	 * by immediate command. So, REQUIRED_TAG_PROCESS_DESCRIPTORS
	 * should be incremented by 1 to overcome buffer overflow.
	 */
	if (ipa3_get_ep_mapping(IPA_CLIENT_APPS_WAN_COAL_CONS) != -1)
		req_num_tag_desc += 1;

	/* Not enough room for the required descriptors for the tag process */
	if (IPA_TAG_MAX_DESC - descs_num < REQUIRED_TAG_PROCESS_DESCRIPTORS) {
	if (IPA_TAG_MAX_DESC - descs_num < req_num_tag_desc) {
		IPAERR("up to %d descriptors are allowed (received %d)\n",
		       IPA_TAG_MAX_DESC - REQUIRED_TAG_PROCESS_DESCRIPTORS,
		       IPA_TAG_MAX_DESC - req_num_tag_desc,
		       descs_num);
		return -ENOMEM;
	}
@@ -6662,8 +6671,8 @@ int ipa3_tag_process(struct ipa3_desc desc[],
			goto fail_free_tag_desc;
		}
		ipa3_init_imm_cmd_desc(&tag_desc[desc_idx], cmd_pyld);
		desc[desc_idx].callback = ipa3_tag_destroy_imm;
		desc[desc_idx].user1 = cmd_pyld;
		tag_desc[desc_idx].callback = ipa3_tag_destroy_imm;
		tag_desc[desc_idx].user1 = cmd_pyld;
		++desc_idx;
	}

@@ -6803,7 +6812,7 @@ int ipa3_tag_process(struct ipa3_desc desc[],
	 * of the initial allocations above
	 */
	for (i = descs_num;
		i < min(REQUIRED_TAG_PROCESS_DESCRIPTORS, desc_idx); i++)
		i < min(req_num_tag_desc, desc_idx); i++)
		if (tag_desc[i].callback)
			tag_desc[i].callback(tag_desc[i].user1,
				tag_desc[i].user2);