Skip to content

Commit 5c3c473

Browse files
alexaringholtmann
authored andcommitted
at86rf230: detailed edge triggered irq warning
This patch introduce a more detailed information why edge triggered irq's are currently not recommended. It could be that rising/falling edge detection can happen while the irq is disabled. Suggested-by: Stefan Schmidt <stefan@osg.samsung.com> Signed-off-by: Alexander Aring <alex.aring@gmail.com> Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 493bc90 commit 5c3c473

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ieee802154/at86rf230.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ static int at86rf230_hw_init(struct at86rf230_local *lp, u8 xtal_trim)
13761376
if (irq_type == IRQ_TYPE_EDGE_RISING ||
13771377
irq_type == IRQ_TYPE_EDGE_FALLING)
13781378
dev_warn(&lp->spi->dev,
1379-
"Using edge triggered irq's are not recommended!\n");
1379+
"Using edge triggered irq's are not recommended, because it can cause races and result in a non-functional driver!\n");
13801380
if (irq_type == IRQ_TYPE_EDGE_FALLING ||
13811381
irq_type == IRQ_TYPE_LEVEL_LOW)
13821382
irq_pol = IRQ_ACTIVE_LOW;

0 commit comments

Comments
 (0)