diff options
Diffstat (limited to 'drivers/remoteproc/omap_remoteproc.c')
-rw-r--r-- | 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 aa3ce52dc65e..69425c4e86f3 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, | |||
80 | dev_info(dev, "received echo reply from %s\n", name); | 80 | dev_info(dev, "received echo reply from %s\n", name); |
81 | break; | 81 | break; |
82 | default: | 82 | default: |
83 | /* ignore vq indices which are too large to be valid */ | 83 | /* msg contains the index of the triggered vring */ |
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 | */ | ||
93 | if (rproc_vq_interrupt(oproc->rproc, msg) == IRQ_NONE) | 84 | if (rproc_vq_interrupt(oproc->rproc, msg) == IRQ_NONE) |
94 | dev_dbg(dev, "no message was found in vqid %d\n", msg); | 85 | dev_dbg(dev, "no message was found in vqid %d\n", msg); |
95 | } | 86 | } |