Skip to contentSkip to conversation

blackfin: Fixup bogus ioresource init

PATCH In review Thomas Gleixner 2 participants 3 messages Jul 23, 2011 – Aug 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blackfin: Fixup bogus ioresource init

IRQF_SHARED is not part of the IORESOURCE_IRQ bits. It's expressed by IORESOURCE_IRQ_SHAREABLE.

IORESOURCE_IRQ_HIGHEDGE and IRQF_TRIGGER_HIGH are contradicting values, an interrupt can hardly be configured for both level and edge at the same time. This was introduced in commit 45138439(Blackfin
arch: flash memory map and dm9000 resources updating) of course without any hint in the changelog what the heck this is supposed to do.

Cc Mike Frysinger <[email protected]>
Cc Javier Herrero <[email protected]>
---
 arch/blackfin/mach-bf533/boards/H8606.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/blackfin/mach-bf533/boards/H8606.c +2 -1
Index: linux-2.6/arch/blackfin/mach-bf533/boards/H8606.c
===================================================================
@@ -54,7 +54,8 @@ static struct resource dm9000_resources[
 	[2] = {
 		.start	= IRQ_PF10,
 		.end	= IRQ_PF10,
-		.flags	= (IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE | IRQF_SHARED | IRQF_TRIGGER_HIGH),
+		.flags	= (IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE |
+			   | IORESOURCE_IRQ_SHAREABLE),
 	},
 };
 
#1 lore raw
Quoted 9 lines · Thomas Gleixner

IRQF_SHARED is not part of the IORESOURCE_IRQ bits. It's expressed by IORESOURCE_IRQ_SHAREABLE.

IORESOURCE_IRQ_HIGHEDGE and IRQF_TRIGGER_HIGH are contradicting values, an interrupt can hardly be configured for both level and edge at the same time. This was introduced in commit 45138439(Blackfin
arch: flash memory map and dm9000 resources updating) of course without any hint in the changelog what the heck this is supposed to do.

makes sense to me. if Javier doesnt have a problem with it, i'll pick it up in a while (traveling atm).
-mike

#2 lore raw
In reply to Thomas Gleixner
Quoted 2 lines · Thomas Gleixner

+               .flags  = (IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE |
+                          | IORESOURCE_IRQ_SHAREABLE),

this introduced a syntax error (two "|" back to back). ive pushed out a fix to my next branch with it.
-mike