Skip to contentSkip to conversation

at86rf230: add missing enable_irq on irq handler

PATCH New Alexander Aring 1 participant 1 message Aug 19, 2014

Subsystems (2)
lore
Share & tools
lore

Alexander Aring

author maintainer
#0 lore raw

PATCH 1/1 at86rf230: add missing enable_irq on irq handler

This patch adds a missing enable_irq in the at86rf230 irq handler. If the read of irq status register failed the irq is disabled and we need to enable the irq on failure.

---
 drivers/net/ieee802154/at86rf230.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ieee802154/at86rf230.c +1 -0
index c9d2a75..948c5d4 100644
@@ -908,6 +908,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(lp->spi->irq);
 		at86rf230_async_error(lp, ctx, rc);
 		return IRQ_NONE;
 	}
Signature · 1 line
2.0.4