[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1323863315-8159-3-git-send-email-ohad@wizery.com>
Date: Wed, 14 Dec 2011 13:48:30 +0200
From: Ohad Ben-Cohen <ohad@...ery.com>
To: <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
Cc: Mark Grosen <mgrosen@...com>, Stephen Boyd <sboyd@...eaurora.org>,
Ohad Ben-Cohen <ohad@...ery.com>
Subject: [PATCH 2/7] remoteproc: avoid registering a virtio device if not supported
From: Mark Grosen <mgrosen@...com>
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@...ery.com: write commit log]
Signed-off-by: Mark Grosen <mgrosen@...com>
Signed-off-by: Ohad Ben-Cohen <ohad@...ery.com>
---
drivers/remoteproc/remoteproc_core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 0d9a955..080c056 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -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) {
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists