android_kernel_motorola_sm6225/drivers/rpmsg
Bjorn Andersson 29fc9b3873 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.

Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-03-20 10:52:54 +08:00
..
Kconfig rpmsg: Allow RPMSG_VIRTIO to be enabled via menuconfig or defconfig 2017-10-25 21:51:05 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qcom_glink_native.c rpmsg: glink: Use spinlock in tx path 2018-03-20 10:52:54 +08:00
qcom_glink_native.h rpmsg: glink: Make RX FIFO peak accessor to take an offset 2017-08-29 20:34:13 -07:00
qcom_glink_rpm.c rpmsg: glink: Make RX FIFO peak accessor to take an offset 2017-08-29 20:34:13 -07:00
qcom_glink_smem.c rpmsg: glink: use put_device() if device_register fail 2018-03-17 21:45:57 -07:00
qcom_smd.c rpmsg: smd: Use spinlock in tx path 2018-03-20 10:52:17 +08:00
rpmsg_char.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
rpmsg_core.c the rest of drivers/*: annotate ->poll() instances 2017-11-28 11:06:58 -05:00
rpmsg_internal.h the rest of drivers/*: annotate ->poll() instances 2017-11-28 11:06:58 -05:00
virtio_rpmsg_bus.c rpmsg: virtio_rpmsg_bus: fix sg_set_buf() when addr is not a valid kernel address 2017-08-24 15:37:28 -07:00