Skip to content

Commit caaf45a

Browse files
Michael Karcherdavem330
authored andcommitted
net-next: ax88796: set IRQF_SHARED flag when IRQ resource is marked as shareable
On the Amiga X-Surf100, the network card interrupt is shared with many other interrupt sources, so requires the IRQF_SHARED flag to register. Signed-off-by: Michael Karcher <kernel@mkarcher.dialup.fu-berlin.de> Signed-off-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent cec4c1c commit caaf45a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/8390/ax88796.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,9 @@ static int ax_probe(struct platform_device *pdev)
872872
dev->irq = irq->start;
873873
ax->irqflags = irq->flags & IRQF_TRIGGER_MASK;
874874

875+
if (irq->flags & IORESOURCE_IRQ_SHAREABLE)
876+
ax->irqflags |= IRQF_SHARED;
877+
875878
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
876879
if (!mem) {
877880
dev_err(&pdev->dev, "no MEM specified\n");

0 commit comments

Comments
 (0)