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

Commit 222b6522 authored by Chris Lew's avatar Chris Lew
Browse files

net: qrtr: Force wakeups for data packets



Force a wakeup when queueing packets to a socket. This is needed to
give userspace clients a chance to run if the device is going into
system suspend. The wakeup event should force the device to abort
suspend.

The only node that should not behave this way is the SLPI node because
sensor stream race conditions cause suspend issues and power drain
issues.

Change-Id: I4375e36261dd18da7bae5a5a4f3f708ed00ed62f
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 6a91a7d5
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -828,6 +828,10 @@ int qrtr_endpoint_post(struct qrtr_endpoint *ep, const void *data, size_t len)
		if (sock_queue_rcv_skb(&ipc->sk, skb))
		if (sock_queue_rcv_skb(&ipc->sk, skb))
			goto err;
			goto err;


		/* Force wakeup for all packets except for sensors */
		if (node->nid != 9)
			__pm_wakeup_event(node->ws, 0);

		qrtr_port_put(ipc);
		qrtr_port_put(ipc);
	}
	}