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

Commit 54c7fb8d authored by Dhoat Harpal's avatar Dhoat Harpal
Browse files

soc: qcom: glink_smem_native_xport: Send blocked signal command



Glink smem xprt driver is not sending blocked signal command to
remote side, when fifo gets full during tx_data. This results in
Glink tx_thread taking longer time in sending data to remote side.

Glink smem xprt driver sends blocked signal command.

CRs-Fixed: 2154819
Change-Id: I105fce28449db2dd0931292cd6850d2409ae683d
Signed-off-by: default avatarDhoat Harpal <hdhoat@codeaurora.org>
parent be27e35c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2028,6 +2028,7 @@ static int tx_data(struct glink_transport_if *if_ptr, uint16_t cmd_id,
	/* Need enough space to write the command and some data */
	if (size <= sizeof(cmd)) {
		einfo->tx_resume_needed = true;
		send_tx_blocked_signal(einfo);
		spin_unlock_irqrestore(&einfo->write_lock, flags);
		srcu_read_unlock(&einfo->use_ref, rcu_id);
		return -EAGAIN;