remoteproc: rsc parser: set vdev_info to proc_vdev
authorWendy Liang <jliang@xilinx.com>
Fri, 13 Jan 2017 19:58:58 +0000 (11:58 -0800)
committerWendy Liang <jliang@xilinx.com>
Fri, 3 Feb 2017 21:41:22 +0000 (13:41 -0800)
Store the vdev resource pointer to proc_vdev so that it will
be able to get remote update.

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

index 67be73c59188d6a871355215a31cf121192c5f44..52ef188335f731c0440c759aee7754786c1f673b 100644 (file)
@@ -227,6 +227,7 @@ int handle_vdev_rsc(struct remote_proc *rproc, void *rsc)
        vdev->num_vrings = vdev_rsc->num_of_vrings;
        vdev->dfeatures = vdev_rsc->dfeatures;
        vdev->gfeatures = vdev_rsc->gfeatures;
+       vdev->vdev_info = vdev_rsc;
        vring_table = &vdev->vring_info[0];
 
        for (idx = 0; idx < vdev_rsc->num_of_vrings; idx++) {