Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

remoteproc/omap: remove the mbox_callback limitation

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 <ohad@wizery.com>
Cc: Brian Swetland <swetland@google.com>
Cc: Iliyan Malchev <malchev@google.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Mark Grosen <mgrosen@ti.com>
Cc: John Williams <john.williams@petalogix.com>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Loic PALLARDY <loic.pallardy@stericsson.com>
Cc: Ludovic BARRE <ludovic.barre@stericsson.com>
Cc: Omar Ramirez Luna <omar.luna@linaro.org>
Cc: Guzman Lugo Fernando <fernando.lugo@ti.com>
Cc: Anna Suman <s-anna@ti.com>
Cc: Clark Rob <rob@ti.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Saravana Kannan <skannan@codeaurora.org>
Cc: David Brown <davidb@codeaurora.org>
Cc: Kieran Bingham <kieranbingham@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>

+1 -10
+1 -10
drivers/remoteproc/omap_remoteproc.c
··· 80 80 dev_info(dev, "received echo reply from %s\n", name); 81 81 break; 82 82 default: 83 - /* ignore vq indices which are too large to be valid */ 84 - if (msg >= 2) { 85 - dev_warn(dev, "invalid mbox msg: 0x%x\n", msg); 86 - break; 87 - } 88 - 89 - /* 90 - * At this point, 'msg' contains the index of the vring 91 - * which was just triggered. 92 - */ 83 + /* msg contains the index of the triggered vring */ 93 84 if (rproc_vq_interrupt(oproc->rproc, msg) == IRQ_NONE) 94 85 dev_dbg(dev, "no message was found in vqid %d\n", msg); 95 86 }