]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/open-amp.git/commitdiff
rpmsg: remote_device: use hil_vdev_notify for remote_dev notify
authorWendy Liang <jliang@xilinx.com>
Wed, 25 Jan 2017 07:48:08 +0000 (23:48 -0800)
committerWendy Liang <jliang@xilinx.com>
Fri, 3 Feb 2017 21:41:24 +0000 (13:41 -0800)
The rpmsg remote dev nofication is the vdev notification.
When it is called, the vq may not be ready. Use vdev notification
instead of vq notificataion.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/rpmsg/remote_device.c

index e9d690c3b38305bd149e42f59e53cb1bf56c7ca7..ebb170f262190c80fc1e082eecfef24b450369c2 100644 (file)
@@ -305,7 +305,9 @@ struct rpmsg_endpoint *rpmsg_rdev_get_endpoint_from_addr(struct remote_device *r
  */
 int rpmsg_rdev_notify(struct remote_device *rdev)
 {
-       virtqueue_kick(rdev->rvq);
+       struct virtio_device *vdev = &rdev->virt_dev;
+
+       hil_vdev_notify(vdev);
 
        return RPMSG_SUCCESS;
 }