at86rf230: add missing enable_irq
authorAlexander Aring <alex.aring@gmail.com>
Tue, 7 Oct 2014 08:38:30 +0000 (10:38 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 05:56:23 +0000 (07:56 +0200)
This patch adds a missing enable_irq when spi_async in isr failed.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c

index 09503fbd9953a95b557f426b28a2662f69abb4d2..8754f158abbf57a6211f165d934f149325c358e6 100644 (file)
@@ -911,6 +911,7 @@ static irqreturn_t at86rf230_isr(int irq, void *data)
        ctx->msg.complete = at86rf230_irq_status;
        rc = spi_async(lp->spi, &ctx->msg);
        if (rc) {
+               enable_irq(irq);
                at86rf230_async_error(lp, ctx, rc);
                return IRQ_NONE;
        }