lkml.org 
[lkml]   [2017]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC LINUX PATCH 16/19] remoteproc: virtio: use rproc_virtio_notify() to notify vdev changes
    Date
    From: Wendy Liang <wendy.liang@xilinx.com>

    Use rproc_virtio_notify() to notify vdev config changes.

    Signed-off-by: Wendy Liang <jliang@xilinx.com>
    Signed-off-by: Michal Simek <michal.simek@xilinx.com>
    ---
    drivers/remoteproc/remoteproc_virtio.c | 14 ++++++++++++++
    1 file changed, 14 insertions(+)

    diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c
    index cc421f3..d43e15b 100644
    --- a/drivers/remoteproc/remoteproc_virtio.c
    +++ b/drivers/remoteproc/remoteproc_virtio.c
    @@ -29,6 +29,20 @@

    #include "remoteproc_internal.h"

    +/* kick the remote processor, and let it know the virtio dev has update */
    +static bool rproc_virtio_notify(struct rproc_vdev *rvdev)
    +{
    + struct rproc *rproc;
    + struct fw_rsc_vdev *rsc;
    +
    + if (!rvdev)
    + return false;
    + rproc = rvdev->rproc;
    + rsc = (void *)rproc->table_ptr + rvdev->rsc_offset;
    + rproc->ops->kick(rproc, rsc->notifyid);
    + return true;
    +}
    +
    /* kick the remote processor, and let it know which virtqueue to poke at */
    static bool rproc_vq_notify(struct virtqueue *vq)
    {
    --
    1.9.1
    \
     
     \ /
      Last update: 2017-03-24 20:32    [W:5.557 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site