summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34d891a)
raw | patch | inline | side by side (parent: 34d891a)
author | Wendy Liang <jliang@xilinx.com> | |
Wed, 25 Jan 2017 23:22:49 +0000 (15:22 -0800) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Mon, 6 Feb 2017 19:31:23 +0000 (11:31 -0800) |
Remove handling name service from rpmsg rx callback.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/rpmsg/rpmsg_core.c | patch | blob | history |
diff --git a/lib/rpmsg/rpmsg_core.c b/lib/rpmsg/rpmsg_core.c
index 728645d381d9cb2754eaecc330fcae0cc46a0b52..0ef12c44d787077df0b44e56e96bb0877bb52db6 100644 (file)
--- a/lib/rpmsg/rpmsg_core.c
+++ b/lib/rpmsg/rpmsg_core.c
struct rpmsg_endpoint *rp_ept;
struct rpmsg_hdr *rp_hdr;
struct rpmsg_hdr_reserved *reserved;
- struct metal_list *node;
unsigned long len;
unsigned short idx;
vdev = (struct virtio_device *)vq->vq_dev;
rdev = (struct remote_device *)vdev;
- if (rdev->role == RPMSG_MASTER) {
- metal_list_for_each(&rdev->rp_channels, node) {
- rp_chnl = metal_container_of(node,
- struct rpmsg_channel, node);
- if (rp_chnl->state == RPMSG_CHNL_STATE_IDLE) {
- if (rdev->support_ns) {
- if (rpmsg_send_ns_message(rdev, rp_chnl,
- RPMSG_NS_CREATE) ==
- RPMSG_SUCCESS)
- rp_chnl->state =
- RPMSG_CHNL_STATE_NS;
- } else {
- rp_chnl->state = RPMSG_CHNL_STATE_ACTIVE;
- }
- return;
- }
- }
- }
-
metal_mutex_acquire(&rdev->lock);
/* Process the received data from remote node */