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

Commit 91624d6f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qseecom: invalidate listener buffer cache when get listener request"

parents 0111390d 87a248d5
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -2092,6 +2092,14 @@ static int __qseecom_process_incomplete_cmd(struct qseecom_dev_handle *data,
			if (ptr_svc->svc.listener_id == lstnr) {
			if (ptr_svc->svc.listener_id == lstnr) {
				ptr_svc->listener_in_use = true;
				ptr_svc->listener_in_use = true;
				ptr_svc->rcv_req_flag = 1;
				ptr_svc->rcv_req_flag = 1;
				ret = qseecom_dmabuf_cache_operations(
					ptr_svc->dmabuf,
					QSEECOM_CACHE_INVALIDATE);
				if (ret) {
					rc = -EINVAL;
					status = QSEOS_RESULT_FAILURE;
					goto err_resp;
				}
				wake_up_interruptible(&ptr_svc->rcv_req_wq);
				wake_up_interruptible(&ptr_svc->rcv_req_wq);
				break;
				break;
			}
			}
@@ -2427,6 +2435,14 @@ static int __qseecom_reentrancy_process_incomplete_cmd(
			if (ptr_svc->svc.listener_id == lstnr) {
			if (ptr_svc->svc.listener_id == lstnr) {
				ptr_svc->listener_in_use = true;
				ptr_svc->listener_in_use = true;
				ptr_svc->rcv_req_flag = 1;
				ptr_svc->rcv_req_flag = 1;
				ret = qseecom_dmabuf_cache_operations(
					ptr_svc->dmabuf,
					QSEECOM_CACHE_INVALIDATE);
				if (ret) {
					rc = -EINVAL;
					status = QSEOS_RESULT_FAILURE;
					goto err_resp;
				}
				wake_up_interruptible(&ptr_svc->rcv_req_wq);
				wake_up_interruptible(&ptr_svc->rcv_req_wq);
				break;
				break;
			}
			}