Now that remoteproc supports any number of virtio devices,
the previous sanity check in omap_rproc_mbox_callback
doesn't make sense anymore.

Remove that so we can start supporting multiple vdevs.

Signed-off-by: Ohad Ben-Cohen <o...@wizery.com>
Cc: Brian Swetland <swetl...@google.com>
Cc: Iliyan Malchev <malc...@google.com>
Cc: Arnd Bergmann <a...@arndb.de>
Cc: Grant Likely <grant.lik...@secretlab.ca>
Cc: Rusty Russell <ru...@rustcorp.com.au>
Cc: Mark Grosen <mgro...@ti.com>
Cc: John Williams <john.willi...@petalogix.com>
Cc: Michal Simek <mon...@monstr.eu>
Cc: Loic PALLARDY <loic.palla...@stericsson.com>
Cc: Ludovic BARRE <ludovic.ba...@stericsson.com>
Cc: Omar Ramirez Luna <omar.l...@linaro.org>
Cc: Guzman Lugo Fernando <fernando.l...@ti.com>
Cc: Anna Suman <s-a...@ti.com>
Cc: Clark Rob <r...@ti.com>
Cc: Stephen Boyd <sb...@codeaurora.org>
Cc: Saravana Kannan <skan...@codeaurora.org>
Cc: David Brown <dav...@codeaurora.org>
Cc: Kieran Bingham <kieranbing...@gmail.com>
Cc: Tony Lindgren <t...@atomide.com>
---
 drivers/remoteproc/omap_remoteproc.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/drivers/remoteproc/omap_remoteproc.c 
b/drivers/remoteproc/omap_remoteproc.c
index aa3ce52..69425c4 100644
--- a/drivers/remoteproc/omap_remoteproc.c
+++ b/drivers/remoteproc/omap_remoteproc.c
@@ -80,16 +80,7 @@ static int omap_rproc_mbox_callback(struct notifier_block 
*this,
                dev_info(dev, "received echo reply from %s\n", name);
                break;
        default:
-               /* ignore vq indices which are too large to be valid */
-               if (msg >= 2) {
-                       dev_warn(dev, "invalid mbox msg: 0x%x\n", msg);
-                       break;
-               }
-
-               /*
-                * At this point, 'msg' contains the index of the vring
-                * which was just triggered.
-                */
+               /* msg contains the index of the triggered vring */
                if (rproc_vq_interrupt(oproc->rproc, msg) == IRQ_NONE)
                        dev_dbg(dev, "no message was found in vqid %d\n", msg);
        }
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to