Skip to content

Commit

Permalink
remoteproc: avoid registering a virtio device if not supported
Browse files Browse the repository at this point in the history
Let remoteproc know when the firmware doesn't support any virtio
functionality, so registering a virtio device can be avoided.

This is needed for remote processors that doesn't require any
virtio-based communications, but are still controlled via remoteproc.

[ohad@wizery.com: write commit log]

Signed-off-by: Mark Grosen <mgrosen@ti.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
  • Loading branch information
Mark Grosen authored and Ohad Ben-Cohen committed Feb 8, 2012
1 parent 0798e1d commit 7d2d395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/remoteproc/remoteproc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ static int
rproc_handle_virtio_rsc(struct rproc *rproc, struct fw_resource *rsc, int len)
{
struct device *dev = rproc->dev;
int ret = 0;
int ret = -ENODEV;

for (; len >= sizeof(*rsc); rsc++, len -= sizeof(*rsc))
if (rsc->type == RSC_VIRTIO_DEV) {
Expand Down

0 comments on commit 7d2d395

Please sign in to comment.