ata: pata_platform: Add IRQF_SHARED to IRQ flags
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 19 Jan 2019 04:52:02 +0000 (07:52 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Feb 2019 13:42:55 +0000 (06:42 -0700)
It's quite possible that multiple devices can be hooked up
to the same interrupt line with the processor. So add IRQF_SHARED
in request irq.

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/pata_platform.c

index 31cd0f3..5aba691 100644 (file)
@@ -114,7 +114,7 @@ int __pata_platform_probe(struct device *dev, struct resource *io_res,
         */
        if (irq_res && irq_res->start > 0) {
                irq = irq_res->start;
-               irq_flags = irq_res->flags & IRQF_TRIGGER_MASK;
+               irq_flags = (irq_res->flags & IRQF_TRIGGER_MASK) | IRQF_SHARED;
        }
 
        /*