From: Alexander Shiyan Date: Sat, 19 Jan 2019 04:52:02 +0000 (+0300) Subject: ata: pata_platform: Add IRQF_SHARED to IRQ flags X-Git-Tag: v5.1-rc1~101^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=baac9ce1f333260485e9084809e909d3ce6c69dd;p=linux.git ata: pata_platform: Add IRQF_SHARED to IRQ flags 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 Signed-off-by: Alexander Shiyan Signed-off-by: Jens Axboe --- diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index 31cd0f39b0a7..5aba691f09af 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c @@ -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; } /*