]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net-next: ax88796: set IRQF_SHARED flag when IRQ resource is marked as shareable
authorMichael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
Thu, 19 Apr 2018 02:05:24 +0000 (14:05 +1200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 20:11:11 +0000 (16:11 -0400)
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>
drivers/net/ethernet/8390/ax88796.c

index d283ed0925195f39111aaef831579597fe46333c..229279f325a2e06291738d0a35a3e2484a9b37d2 100644 (file)
@@ -872,6 +872,9 @@ static int ax_probe(struct platform_device *pdev)
        dev->irq = irq->start;
        ax->irqflags = irq->flags & IRQF_TRIGGER_MASK;
 
+       if (irq->flags &  IORESOURCE_IRQ_SHAREABLE)
+               ax->irqflags |= IRQF_SHARED;
+
        mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!mem) {
                dev_err(&pdev->dev, "no MEM specified\n");