diff mbox series

[2/2] ata: pata_platform: Add IRQF_SHARED to IRQ flags

Message ID 20190119045202.9742-2-shc_work@mail.ru
State Not Applicable
Delegated to: David Miller
Headers show
Series [1/2] ata: pata_of_platform: Allow to use 16-bit wide data transfer | expand

Commit Message

Alexander Shiyan Jan. 19, 2019, 4:52 a.m. UTC
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.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/ata/pata_platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bartlomiej Zolnierkiewicz Feb. 7, 2019, 11:57 a.m. UTC | #1
On 01/19/2019 05:52 AM, Alexander Shiyan wrote:
> 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.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
diff mbox series

Patch

diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c
index 31cd0f3..5aba691 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;
 	}
 
 	/*