linux-mips
[Top] [All Lists]

[PATCH] irq handler must disable the handled irq

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] irq handler must disable the handled irq
From: Phil Sutter <n0-1@freewrt.org>
Date: Mon, 27 Oct 2008 02:30:26 +0100
Cc: Linux-Mips List <linux-mips@linux-mips.org>, Florian Fainelli <florian@openwrt.org>
In-reply-to: <20081026103635.GA10490@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20081026103635.GA10490@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
 drivers/ata/pata_rb532_cf.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c
index f8b3ffc..a1d44a6 100644
--- a/drivers/ata/pata_rb532_cf.c
+++ b/drivers/ata/pata_rb532_cf.c
@@ -116,6 +116,8 @@ static irqreturn_t rb532_pata_irq_handler(int irq, void 
*dev_instance)
                set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH);
        }
 
+       disable_irq(irq);
+
        return IRQ_HANDLED;
 }
 
-- 
1.5.6.4


<Prev in Thread] Current Thread [Next in Thread>