summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 75d03f8)
raw | patch | inline | side by side (parent: 75d03f8)
author | Wendy Liang <jliang@xilinx.com> | |
Sun, 15 Jan 2017 07:06:42 +0000 (23:06 -0800) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Fri, 3 Feb 2017 21:41:22 +0000 (13:41 -0800) |
It is the virtio master to allocate the vrings' memories, on the slave
side, it should not create channels before the master driver is OK.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
side, it should not create channels before the master driver is OK.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/rpmsg/remote_device.c | patch | blob | history | |
lib/rpmsg/rpmsg_core.c | patch | blob | history |
index 223e3cce59109fe44eff20469337262a12d35299..9ddfa93c0edb0718e3d254ef5e68a3de23c1492a 100644 (file)
}
}
+ if (!rpmsg_rdev_remote_ready(rdev_loc))
+ return RPMSG_ERR_DEV_INIT;
+
/* Initialize endpoints list */
metal_list_init(&rdev_loc->rp_endpoints);
diff --git a/lib/rpmsg/rpmsg_core.c b/lib/rpmsg/rpmsg_core.c
index 06faa053d938df346ecd54be1f39f3ca9587d8e8..2a63c2054d4f023b351931887b14d1427b8456f6 100644 (file)
--- a/lib/rpmsg/rpmsg_core.c
+++ b/lib/rpmsg/rpmsg_core.c
#include "metal/io.h"
#include "metal/cache.h"
#include "metal/alloc.h"
+#include "metal/cpu.h"
/* Internal functions */
static void rpmsg_rx_callback(struct virtqueue *vq);