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

Commit 85d3c03e authored by Dhoat Harpal's avatar Dhoat Harpal Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: glink_loopback_server: Add request intent flag for tx



Loopback server is not using request intent flag while calling
glink_tx. This result in transaction failure without waiting
for intent.

GLINK_TX_REQ_INTENT flag is added, so that glink will wait for
remote side to queue intent.

CRs-Fixed: 2117763
Change-Id: Ia4aec8d7f0046b7af4fe853fcec86bdc18386619
Signed-off-by: default avatarDhoat Harpal <hdhoat@codeaurora.org>
parent 0620a466
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ int glink_lbsrv_send_response(void *handle, uint32_t req_id, uint32_t req_type,
	resp_pkt->response = response;

	return glink_tx(handle, (void *)LINEAR, (void *)resp_pkt,
			sizeof(struct resp), 0);
			sizeof(struct resp), GLINK_TX_REQ_INTENT);
}

static uint32_t calc_delay_ms(uint32_t random_delay, uint32_t delay_ms)
@@ -1143,7 +1143,7 @@ static void glink_lbsrv_tx_worker(struct work_struct *work)
			return;
		}

		flags = 0;
		flags = GLINK_TX_REQ_INTENT;
		if (tmp_work_info->tracer_pkt) {
			flags |= GLINK_TX_TRACER_PKT;
			tracer_pkt_log_event(tmp_work_info->data,