Skip to content

Commit

Permalink
mrf24j40: Use level-triggered interrupts
Browse files Browse the repository at this point in the history
The mrf24j40 generates level interrupts. There are rare cases where it
appears that the interrupt line never gets de-asserted between interrupts,
causing interrupts to be lost, and causing a hung device from the driver's
perspective.  Switching the driver to interpret these interrupts as
level-triggered fixes this issue.

Signed-off-by: Alan Ott <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
signal11 authored and davem330 committed Oct 8, 2013
1 parent 4a4e1da commit 40afbb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ieee802154/mrf24j40.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ static int mrf24j40_probe(struct spi_device *spi)
ret = request_threaded_irq(spi->irq,
NULL,
mrf24j40_isr,
IRQF_TRIGGER_FALLING|IRQF_ONESHOT,
IRQF_TRIGGER_LOW|IRQF_ONESHOT,
dev_name(&spi->dev),
devrec);

Expand Down

0 comments on commit 40afbb6

Please sign in to comment.