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

Skip to content
Commit 9f1263b4 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Chris Lew
Browse files

rpmsg: glink: Use spinlock in tx path



Switch the tx_lock to a spinlock we allow clients to use rpmsg_trysend()
from atomic context.

In order to allow clients to sleep while waiting for space in the FIFO
we release the lock temporarily around the delay; which should be
replaced by sending a READ_NOTIF and waiting for the remote to signal
us that space has been made available.

Change-Id: Id3f3f7bed80ca9db9942210bf2cd5cfa3b8f3d3e
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Patch-mainline: linux-arm-msm @ 13/02/2018 11:04
[clew@codeaurora.org: Fix uninitialized return value in qcom_glink_tx]
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 4c875fe7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment