* [PATCH] disable the right device
[not found] <20081026103635.GA10490@linux-mips.org>
@ 2008-10-27 1:29 ` Phil Sutter
2008-10-27 7:09 ` Ralf Baechle
2008-10-27 1:30 ` [PATCH] irq handler must disable the handled irq Phil Sutter
1 sibling, 1 reply; 9+ messages in thread
From: Phil Sutter @ 2008-10-27 1:29 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Linux-Mips List, Florian Fainelli
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
arch/mips/rb532/devices.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c
index 31619c6..2f22d71 100644
--- a/arch/mips/rb532/devices.c
+++ b/arch/mips/rb532/devices.c
@@ -280,7 +280,7 @@ static int __init plat_setup_devices(void)
{
/* Look for the CF card reader */
if (!readl(IDT434_REG_BASE + DEV1MASK))
- rb532_devs[1] = NULL;
+ rb532_devs[2] = NULL; /* disable cf_slot0 at index 2 */
else {
cf_slot0_res[0].start =
readl(IDT434_REG_BASE + DEV1BASE);
--
1.5.6.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH] irq handler must disable the handled irq
[not found] <20081026103635.GA10490@linux-mips.org>
2008-10-27 1:29 ` [PATCH] disable the right device Phil Sutter
@ 2008-10-27 1:30 ` Phil Sutter
2008-10-27 6:51 ` Ralf Baechle
1 sibling, 1 reply; 9+ messages in thread
From: Phil Sutter @ 2008-10-27 1:30 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Linux-Mips List, Florian Fainelli
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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] irq handler must disable the handled irq
2008-10-27 1:30 ` [PATCH] irq handler must disable the handled irq Phil Sutter
@ 2008-10-27 6:51 ` Ralf Baechle
0 siblings, 0 replies; 9+ messages in thread
From: Ralf Baechle @ 2008-10-27 6:51 UTC (permalink / raw)
To: Phil Sutter; +Cc: Linux-Mips List, Florian Fainelli
On Mon, Oct 27, 2008 at 02:30:26AM +0100, Phil Sutter wrote:
> drivers/ata/pata_rb532_cf.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
Please send this patch to the IDE maintainer & list.
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] disable the right device
2008-10-27 1:29 ` [PATCH] disable the right device Phil Sutter
@ 2008-10-27 7:09 ` Ralf Baechle
0 siblings, 0 replies; 9+ messages in thread
From: Ralf Baechle @ 2008-10-27 7:09 UTC (permalink / raw)
To: Phil Sutter; +Cc: Linux-Mips List, Florian Fainelli
On Mon, Oct 27, 2008 at 02:29:57AM +0100, Phil Sutter wrote:
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] irq handler must disable the handled irq
@ 2008-10-27 14:01 Phil Sutter
2008-10-27 14:15 ` Alan Cox
0 siblings, 1 reply; 9+ messages in thread
From: Phil Sutter @ 2008-10-27 14:01 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, Florian Fainelli
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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] irq handler must disable the handled irq
2008-10-27 14:01 Phil Sutter
@ 2008-10-27 14:15 ` Alan Cox
2008-10-27 15:41 ` Phil Sutter
0 siblings, 1 reply; 9+ messages in thread
From: Alan Cox @ 2008-10-27 14:15 UTC (permalink / raw)
To: Phil Sutter; +Cc: Bartlomiej Zolnierkiewicz, linux-ide, Florian Fainelli
On Mon, 27 Oct 2008 15:01:47 +0100
Phil Sutter <n0-1@freewrt.org> wrote:
> 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);
> +
You can't call disable_irq in an IRQ handler. What are you actually
trying to do ?
Alan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] irq handler must disable the handled irq
2008-10-27 14:15 ` Alan Cox
@ 2008-10-27 15:41 ` Phil Sutter
2008-10-27 19:38 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 9+ messages in thread
From: Phil Sutter @ 2008-10-27 15:41 UTC (permalink / raw)
To: linux-ide
On Mon, Oct 27, 2008 at 02:15:09PM +0000, Alan Cox wrote:
> You can't call disable_irq in an IRQ handler. What are you actually
> trying to do ?
Well, what I'm trying to do is getting the driver to a working state.
But it seems like I don't know what I'm actually doing. :/
The symptom I discovered was rb532_pata_irq_handler() being called over
and over again, endlessly. Calling disable_irq() from within stopped
that, so I assumed it to be right (obviously the wrong direction for a
proof).
As the working driver for 2.6.19 I have here is not based on libata, I'm
not quite sure how much code is still required and where to hook it into
the libata subsystem.
Greetings, Phil
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] irq handler must disable the handled irq
2008-10-27 15:41 ` Phil Sutter
@ 2008-10-27 19:38 ` Bartlomiej Zolnierkiewicz
2008-10-27 20:51 ` Phil Sutter
0 siblings, 1 reply; 9+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-10-27 19:38 UTC (permalink / raw)
To: Phil Sutter; +Cc: linux-ide
On Monday 27 October 2008, Phil Sutter wrote:
> As the working driver for 2.6.19 I have here is not based on libata, I'm
Any reason why it has not been submitted?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] irq handler must disable the handled irq
2008-10-27 19:38 ` Bartlomiej Zolnierkiewicz
@ 2008-10-27 20:51 ` Phil Sutter
0 siblings, 0 replies; 9+ messages in thread
From: Phil Sutter @ 2008-10-27 20:51 UTC (permalink / raw)
To: linux-ide
On Mon, Oct 27, 2008 at 08:38:45PM +0100, Bartlomiej Zolnierkiewicz wrote:
> Any reason why it has not been submitted?
Not really. Two years ago I was working at the 2.6 port of the board in
a lab semester. Shortly after having contacted the linux-mips maintainer
(who also told me to send the mentioned driver to this list) the
semester was over and everyday life at the university hit me again.
If there is demand for it, I could try to port it to git and the
already existing board support.
Greetings, Phil
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-10-27 20:50 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20081026103635.GA10490@linux-mips.org>
2008-10-27 1:29 ` [PATCH] disable the right device Phil Sutter
2008-10-27 7:09 ` Ralf Baechle
2008-10-27 1:30 ` [PATCH] irq handler must disable the handled irq Phil Sutter
2008-10-27 6:51 ` Ralf Baechle
2008-10-27 14:01 Phil Sutter
2008-10-27 14:15 ` Alan Cox
2008-10-27 15:41 ` Phil Sutter
2008-10-27 19:38 ` Bartlomiej Zolnierkiewicz
2008-10-27 20:51 ` Phil Sutter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.