From 411f62470d2cb2d53797000f00424e12d3124f81 Mon Sep 17 00:00:00 2001 From: Guiding Li Date: Wed, 18 Nov 2020 20:34:34 +0800 Subject: [PATCH] openamp: rpmsg_send() shouldn't check buffer size when get buffer failed cause _rpmsg_virtio_get_buffer_size() always return size > 0, when role is RPMSG_MASTER. Signed-off-by: Guiding Li --- lib/rpmsg/rpmsg_virtio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rpmsg/rpmsg_virtio.c b/lib/rpmsg/rpmsg_virtio.c index c7c578d62..7509544ba 100644 --- a/lib/rpmsg/rpmsg_virtio.c +++ b/lib/rpmsg/rpmsg_virtio.c @@ -333,6 +333,7 @@ static void *rpmsg_virtio_get_tx_payload_buffer(struct rpmsg_device *rdev, metal_mutex_release(&rdev->lock); if (rp_hdr || !tick_count) break; + metal_sleep_usec(RPMSG_TICKS_PER_INTERVAL); tick_count--; }