sparse irq fixes for pxa and sa1100
Subsystems (9)
cover sparse irq fixes for pxa and sa1100
From: Rob Herring <[email protected]>
Russell,
Here's fixes for sa1100 and pxa. This is based on your for-next branch. I've built all the boards for both, but there could be some more drivers lurking if they aren't enabled in the defconfigs. I'm running an all defconfig build now.
I've published the branch below if you want to pull the changes. I'm going to be offline most of the next 4 days.
Also, I found a few other unrelated things breaking builds, but haven't done a fix:
-xip mtd is broken on pxa.
-exynos cpufreq needs to depend on exynos.
Rob
The following changes since commit 41bc99e49cc9ab74a4f1a5083d79231fd6ea2704:
Merge branch 'devel-stable' into for-next (2012-02-16 00:34:44 +0000)
are available in the git repository at:
git://sources.calxeda.com/kernel/linux.git sparse-irq-fixes
Rob Herring (4):
ARM: sa1100: fix sa1100 after sparse irq conversion
ARM: sa1100: fix simpad compile error
ARM: pxa: mainstone: add missing include for IRQ_BOARD_START
rtc: sa1100: include mach/irqs.h instead of asm/irq.h
arch/arm/mach-pxa/include/mach/mainstone.h | 2 ++ arch/arm/mach-sa1100/assabet.c | 2 ++ arch/arm/mach-sa1100/badge4.c | 1 + arch/arm/mach-sa1100/cerf.c | 2 ++ arch/arm/mach-sa1100/collie.c | 2 ++ arch/arm/mach-sa1100/generic.c | 4 +++- arch/arm/mach-sa1100/h3100.c | 2 ++ arch/arm/mach-sa1100/h3600.c | 2 ++ arch/arm/mach-sa1100/hackkit.c | 5 ++++- arch/arm/mach-sa1100/include/mach/irqs.h | 2 +- arch/arm/mach-sa1100/irq.c | 1 + arch/arm/mach-sa1100/jornada720.c | 5 ++++- arch/arm/mach-sa1100/lart.c | 2 ++ arch/arm/mach-sa1100/nanoengine.c | 2 ++ arch/arm/mach-sa1100/neponset.c | 1 + arch/arm/mach-sa1100/pleb.c | 1 + arch/arm/mach-sa1100/shannon.c | 2 ++ arch/arm/mach-sa1100/simpad.c | 4 +++- arch/arm/mach-sa1100/ssp.c | 1 + arch/arm/mach-sa1100/time.c | 1 + drivers/gpio/gpio-sa1100.c | 1 + drivers/net/ethernet/smsc/smc91x.c | 4 ++++ drivers/rtc/rtc-sa1100.c | 2 +- drivers/tty/serial/sa1100.c | 1 + 24 files changed, 46 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
From: Rob Herring <[email protected]>
SA1100 was converted to sparse irq in parallel with include of mach/irqs.h being removed from asm/irq.h when sparse irq is enabled, resulting in lots of compile errors.
--- arch/arm/mach-sa1100/assabet.c | 2 ++ arch/arm/mach-sa1100/badge4.c | 1 + arch/arm/mach-sa1100/cerf.c | 2 ++ arch/arm/mach-sa1100/collie.c | 2 ++ arch/arm/mach-sa1100/generic.c | 4 +++- arch/arm/mach-sa1100/h3100.c | 2 ++ arch/arm/mach-sa1100/h3600.c | 2 ++ arch/arm/mach-sa1100/hackkit.c | 5 ++++- arch/arm/mach-sa1100/include/mach/irqs.h | 2 +- arch/arm/mach-sa1100/irq.c | 1 + arch/arm/mach-sa1100/jornada720.c | 5 ++++- arch/arm/mach-sa1100/lart.c | 2 ++ arch/arm/mach-sa1100/nanoengine.c | 2 ++ arch/arm/mach-sa1100/neponset.c | 1 + arch/arm/mach-sa1100/pleb.c | 1 + arch/arm/mach-sa1100/shannon.c | 2 ++ arch/arm/mach-sa1100/simpad.c | 2 ++ arch/arm/mach-sa1100/ssp.c | 1 + arch/arm/mach-sa1100/time.c | 1 + drivers/gpio/gpio-sa1100.c | 1 + drivers/net/ethernet/smsc/smc91x.c | 4 ++++ drivers/tty/serial/sa1100.c | 1 + 22 files changed, 42 insertions(+), 4 deletions(-)
arch/arm/mach-sa1100/assabet.c +2 -0
@@ -39,6 +39,7 @@#include <asm/mach/serial_sa1100.h> #include <mach/assabet.h> #include <mach/mcp.h> +#include <mach/irqs.h> #include "generic.h"
@@ -534,6 +535,7 @@ MACHINE_START(ASSABET, "Intel-Assabet") .atag_offset = 0x100, .fixup = fixup_assabet, .map_io = assabet_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .init_machine = assabet_init,
arch/arm/mach-sa1100/badge4.c +1 -0
@@ -303,6 +303,7 @@ static void __init badge4_map_io(void)MACHINE_START (BADGE4 ,"Hewlett-Packard Laboratories BadgePAD 4" ) .atag_offset = 0x100, .map_io = badge4_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, #ifdef CONFIG_SA1111
arch/arm/mach-sa1100/cerf.c +2 -0
@@ -30,6 +30,7 @@#include <mach/cerf.h> #include <mach/mcp.h> +#include <mach/irqs.h> #include "generic.h" static struct resource cerfuart2_resources[] = {
@@ -130,6 +131,7 @@ static void __init cerf_init(void)MACHINE_START (CERF ,"Intrinsyc CerfBoard/CerfCube" )/* Maintainer: support at intrinsyc.com */ .map_io = cerf_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = cerf_init_irq, .timer = &sa1100_timer, .init_machine = cerf_init,
arch/arm/mach-sa1100/collie.c +2 -0
@@ -47,6 +47,7 @@#include <asm/mach/sharpsl_param.h> #include <asm/hardware/locomo.h> #include <mach/mcp.h> +#include <mach/irqs.h> #include "generic.h"
@@ -393,6 +394,7 @@ static void __init collie_map_io(void)MACHINE_START (COLLIE ,"Sharp-Collie" ) .map_io = collie_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .init_machine = collie_init,
arch/arm/mach-sa1100/generic.c +3 -1
@@ -23,12 +23,14 @@#include <video/sa1100fb.h> #include <asm/div64.h> -#include <mach/hardware.h> #include <asm/system.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> #include <asm/irq.h> +#include <mach/hardware.h> +#include <mach/irqs.h> +#include "generic.h" unsigned int reset_status;
arch/arm/mach-sa1100/h3100.c +2 -0
@@ -21,6 +21,7 @@#include <asm/mach/irda.h> #include <mach/h3xxx.h> +#include <mach/irqs.h> #include "generic.h"
@@ -105,6 +106,7 @@ static void __init h3100_mach_init(void)MACHINE_START (H3100 ,"Compaq iPAQ H3100" ) .atag_offset = 0x100, .map_io = h3100_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .init_machine = h3100_mach_init,
arch/arm/mach-sa1100/h3600.c +2 -0
@@ -21,6 +21,7 @@#include <asm/mach/irda.h> #include <mach/h3xxx.h> +#include <mach/irqs.h> #include "generic.h"
@@ -155,6 +156,7 @@ static void __init h3600_mach_init(void)MACHINE_START (H3600 ,"Compaq iPAQ H3600" ) .atag_offset = 0x100, .map_io = h3600_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .init_machine = h3600_mach_init,
arch/arm/mach-sa1100/hackkit.c +4 -1
@@ -22,7 +22,6 @@#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/setup.h> #include <asm/page.h>
@@ -35,6 +34,9 @@#include <asm/mach/irq.h> #include <asm/mach/serial_sa1100.h> +#include <mach/hardware.h> +#include <mach/irqs.h> +#include "generic.h" /**********************************************************************
@@ -194,6 +196,7 @@ static void __init hackkit_init(void)MACHINE_START (HACKKIT ,"HackKit Cpu Board" ) .atag_offset = 0x100, .map_io = hackkit_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .init_machine = hackkit_init,
arch/arm/mach-sa1100/include/mach/irqs.h +1 -1
@@ -83,4 +83,4 @@#define NR_IRQS_LOCOMO 0#endif -#define NR_IRQS (IRQ_BOARD_START + NR_IRQS_LOCOMO) +#define SA1100_NR_IRQS (IRQ_BOARD_START + NR_IRQS_LOCOMO)
arch/arm/mach-sa1100/irq.c +1 -0
@@ -17,6 +17,7 @@#include <linux/syscore_ops.h> #include <mach/hardware.h> +#include <mach/irqs.h> #include <asm/mach/irq.h> #include "generic.h"
arch/arm/mach-sa1100/jornada720.c +4 -1
@@ -23,7 +23,6 @@#include <linux/mtd/partitions.h> #include <video/s1d13xxxfb.h> -#include <mach/hardware.h> #include <asm/hardware/sa1111.h> #include <asm/irq.h> #include <asm/page.h>
@@ -34,6 +33,9 @@#include <asm/mach/map.h> #include <asm/mach/serial_sa1100.h> +#include <mach/hardware.h> +#include <mach/irqs.h> +#include "generic.h" /*
@@ -343,6 +345,7 @@ MACHINE_START(JORNADA720, "HP Jornada 720")/* Maintainer: Kristoffer Ericson <[email protected]> */ .atag_offset = 0x100, .map_io = jornada720_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .init_machine = jornada720_mach_init,
arch/arm/mach-sa1100/lart.c +2 -0
@@ -17,6 +17,7 @@#include <asm/mach/map.h> #include <asm/mach/serial_sa1100.h> #include <mach/mcp.h> +#include <mach/irqs.h> #include "generic.h"
@@ -143,6 +144,7 @@ static void __init lart_map_io(void)MACHINE_START (LART ,"LART" ) .atag_offset = 0x100, .map_io = lart_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .init_machine = lart_init, .timer = &sa1100_timer,
arch/arm/mach-sa1100/nanoengine.c +2 -0
@@ -28,6 +28,7 @@#include <mach/hardware.h> #include <mach/nanoengine.h> +#include <mach/irqs.h> #include "generic.h"
@@ -107,6 +108,7 @@ static void __init nanoengine_init(void)MACHINE_START (NANOENGINE ,"BSE nanoEngine" ) .atag_offset = 0x100, .map_io = nanoengine_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .init_machine = nanoengine_init,
arch/arm/mach-sa1100/neponset.c +1 -0
@@ -21,6 +21,7 @@#include <mach/hardware.h> #include <mach/assabet.h> #include <mach/neponset.h> +#include <mach/irqs.h> #define NEP_IRQ_SMC91X 0#define NEP_IRQ_USAR 1
arch/arm/mach-sa1100/pleb.c +1 -0
@@ -131,6 +131,7 @@ static void __init pleb_map_io(void)MACHINE_START (PLEB ,"PLEB" ) .map_io = pleb_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .init_machine = pleb_init,
arch/arm/mach-sa1100/shannon.c +2 -0
@@ -21,6 +21,7 @@#include <asm/mach/serial_sa1100.h> #include <mach/mcp.h> #include <mach/shannon.h> +#include <mach/irqs.h> #include "generic.h"
@@ -99,6 +100,7 @@ static void __init shannon_map_io(void)MACHINE_START (SHANNON ,"Shannon (AKA: Tuxscreen)" ) .atag_offset = 0x100, .map_io = shannon_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .init_machine = shannon_init,
arch/arm/mach-sa1100/simpad.c +2 -0
@@ -27,6 +27,7 @@#include <asm/mach/serial_sa1100.h> #include <mach/mcp.h> #include <mach/simpad.h> +#include <mach/irqs.h> #include <linux/serial_core.h> #include <linux/ioport.h>
@@ -393,6 +394,7 @@ MACHINE_START(SIMPAD, "Simpad")/* Maintainer: Holger Freyther */ .atag_offset = 0x100, .map_io = simpad_map_io, + .nr_irqs = SA1100_NR_IRQS, .init_irq = sa1100_init_irq, .timer = &sa1100_timer, .restart = sa11x0_restart,
arch/arm/mach-sa1100/ssp.c +1 -0
@@ -21,6 +21,7 @@#include <asm/irq.h> #include <mach/hardware.h> +#include <mach/irqs.h> #include <asm/hardware/ssp.h> #define TIMEOUT 100000
arch/arm/mach-sa1100/time.c +1 -0
@@ -18,6 +18,7 @@#include <asm/mach/time.h> #include <asm/sched_clock.h> #include <mach/hardware.h> +#include <mach/irqs.h> static u32 notrace sa1100_read_sched_clock(void) {
drivers/gpio/gpio-sa1100.c +1 -0
@@ -12,6 +12,7 @@#include <linux/module.h> #include <mach/hardware.h> +#include <mach/irqs.h> static int sa1100_gpio_get (struct gpio_chip *chip,unsigned offset) {
drivers/net/ethernet/smsc/smc91x.c +4 -0
@@ -89,6 +89,10 @@ static const char version[] =#include <asm/io.h> +#if defined(CONFIG_SA1100_ASSABET ) +#include <mach/neponset.h> +#endif +#include "smc91x.h" #ifndef SMC_NOWAIT
drivers/tty/serial/sa1100.c +1 -0
@@ -38,6 +38,7 @@#include <asm/irq.h> #include <mach/hardware.h> +#include <mach/irqs.h> #include <asm/mach/serial_sa1100.h> /* We've been assigned a range on the "Low-density serial ports" major */
Signature · 1 line
1.7.5.4
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
Quoted 5 lines · Rob Herring
From: Rob Herring <[email protected]>
SA1100 was converted to sparse irq in parallel with include of
mach/irqs.hbeing removed fromasm/irq.hwhen sparse irq is enabled, resulting in lots of compile errors.
Can this be applied before the change to enable sparse IRQ for sa11x0 platforms without breaking them?
Thanks.
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
Quoted 9 lines · Russell King - ARM Linux
Quoted 5 lines · Rob Herring
From: Rob Herring <[email protected]>
SA1100 was converted to sparse irq in parallel with include of
mach/irqs.hbeing removed fromasm/irq.hwhen sparse irq is enabled, resulting in lots of compile errors.Can this be applied before the change to enable sparse IRQ for sa11x0 platforms without breaking them?
All but the rename of NR_IRQS to SA1100_NR_IRQS should be fine, but I can change it to leave NR_IRQS.
Rob
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
Quoted 8 lines · Rob Herring
Quoted 7 lines · Russell King - ARM Linux
Quoted 5 lines · Rob Herring
From: Rob Herring <[email protected]>
SA1100 was converted to sparse irq in parallel with include of
mach/irqs.hbeing removed fromasm/irq.hwhen sparse irq is enabled, resulting in lots of compile errors.
Quoted 5 lines
Quoted 2 lines
Can this be applied before the change to enable sparse IRQ for sa11x0 platforms without breaking them?
All but the rename of
NR_IRQStoSA1100_NR_IRQSshould be fine, but I can change it to leaveNR_IRQS.
That sounds like a good thing to have sorted and merged into my sa11x0 branch before the switching on of SPARSE_IRQ for sa11x0.
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
In reply to Rob HerringQuoted 8 lines · Rob Herring
Quoted 7 lines · Russell King - ARM Linux
Quoted 5 lines · Rob Herring
From: Rob Herring <[email protected]>
SA1100 was converted to sparse irq in parallel with include of
mach/irqs.hbeing removed fromasm/irq.hwhen sparse irq is enabled, resulting in lots of compile errors.
Quoted 5 lines
Quoted 2 lines
Can this be applied before the change to enable sparse IRQ for sa11x0 platforms without breaking them?
All but the rename of
NR_IRQStoSA1100_NR_IRQSshould be fine, but I can change it to leaveNR_IRQS.
This isn't going to work.
If we update stuff to include mach/irqs.h, then we end up with mach/irqs.h trying to override NR_IRQS in asm/irq.h:
#ifndef CONFIG_SPARSE_IRQ
#include <mach/irqs.h>
#else
#define NR_IRQS NR_IRQS_LEGACY
#endif
which spits out a lovely warning:
In file included from arch/arm/mach-sa1100/irq.c:20:arch/arm/mach-sa1100/include/mach/irqs.h:86:1: warning: "NR_IRQS" redefined In file included from arch/arm/include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:12,
from arch/arm/mach-sa1100/irq.c:14:arch/arm/include/asm/irq.h:9:1: warning: this is the location of the previous definition
There's three solutions I can think to this:
1. you need to decouple the SPARSE IRQ conversion from the removal of mach/irqs.h, so that there's a clean way to transition
2. I rebase the 100 odd otherwise unrelated sa11x0 patches on top of your stuff, which isn't going to be a nice experience.
3. I drop the final commit for this merge window to convert sa11x0 to sparse IRQ and the sparse IRQ conversion patch becomes quite large (basically meaning that all the includes have to be changed in unison with enabling sparse IRQ.)
(1) I think is the right solution, because it means that there's a nice easy transition path for everyone in the future without requiring (3) to happen every time.
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
Russell,
Quoted 28 lines · Russell King - ARM Linux
Quoted 8 lines · Rob Herring
Quoted 7 lines · Russell King - ARM Linux
Quoted 5 lines · Rob Herring
From: Rob Herring <[email protected]>
SA1100 was converted to sparse irq in parallel with include of
mach/irqs.hbeing removed fromasm/irq.hwhen sparse irq is enabled, resulting in lots of compile errors.Quoted 5 lines
Quoted 2 lines
Can this be applied before the change to enable sparse IRQ for sa11x0 platforms without breaking them?
All but the rename of
NR_IRQStoSA1100_NR_IRQSshould be fine, but I can change it to leaveNR_IRQS.This isn't going to work.
If we update stuff to include
mach/irqs.h, then we end up withmach/irqs.htrying to overrideNR_IRQSinasm/irq.h:#ifndef
CONFIG_SPARSE_IRQ
#include <mach/irqs.h>
#else
#defineNR_IRQSNR_IRQS_LEGACY
#endifwhich spits out a lovely warning:
Quoted 8 lines
In file included from
arch/arm/mach-sa1100/irq.c:20:arch/arm/mach-sa1100/include/mach/irqs.h:86:1: warning: "NR_IRQS" redefined In file included fromarch/arm/include/asm/hardirq.h:6,from include/linux/hardirq.h:7, from include/linux/interrupt.h:12, from arch/arm/mach-sa1100/irq.c:14:
arch/arm/include/asm/irq.h:9:1: warning: this is the location of the previous definition
But this only occurs after you converted to SPARSE_IRQ, right? If you add an "#ifndef NR_IRQS" to mach/irqs.h in your conversion, then everything should be okay. Then after everything is merged, NR_IRQS can be removed.
Quoted 6 lines
There's three solutions I can think to this:
1. you need to decouple the SPARSE IRQ conversion from the removal of
mach/irqs.h, so that there's a clean way to transition
2. I rebase the 100 odd otherwise unrelated sa11x0 patches on top of your stuff, which isn't going to be a nice experience.
But the SPARSE_IRQ conversion commit is the last one on your sa11x0 branch. I'm assuming you are okay with rebasing that commit.
Quoted 8 lines
3. I drop the final commit for this merge window to convert sa11x0 to sparse IRQ and the sparse IRQ conversion patch becomes quite large (basically meaning that all the includes have to be changed in unison with enabling sparse IRQ.)
(1) I think is the right solution, because it means that there's a nice easy transition path for everyone in the future without requiring (3) to happen every time.
Can you take a look at my branch sa11x0-sparse-irq I just pushed out. It's based on your sa11x0 branch with just your sparse irq conversion commit rebased. I've built it with and without the sparse irq conversion and also merged my sparse_irq branch in without conflict and built that.
Rob
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
Quoted 40 lines · Rob Herring
Russell,
Quoted 28 lines · Russell King - ARM Linux
Quoted 8 lines · Rob Herring
Quoted 7 lines · Russell King - ARM Linux
Quoted 5 lines · Rob Herring
From: Rob Herring <[email protected]>
SA1100 was converted to sparse irq in parallel with include of
mach/irqs.hbeing removed fromasm/irq.hwhen sparse irq is enabled, resulting in lots of compile errors.Quoted 5 lines
Quoted 2 lines
Can this be applied before the change to enable sparse IRQ for sa11x0 platforms without breaking them?
All but the rename of
NR_IRQStoSA1100_NR_IRQSshould be fine, but I can change it to leaveNR_IRQS.This isn't going to work.
If we update stuff to include
mach/irqs.h, then we end up withmach/irqs.htrying to overrideNR_IRQSinasm/irq.h:#ifndef
CONFIG_SPARSE_IRQ
#include <mach/irqs.h>
#else
#defineNR_IRQSNR_IRQS_LEGACY
#endifwhich spits out a lovely warning:
Quoted 8 lines
In file included from
arch/arm/mach-sa1100/irq.c:20:arch/arm/mach-sa1100/include/mach/irqs.h:86:1: warning: "NR_IRQS" redefined In file included fromarch/arm/include/asm/hardirq.h:6,from include/linux/hardirq.h:7, from include/linux/interrupt.h:12, from arch/arm/mach-sa1100/irq.c:14:
arch/arm/include/asm/irq.h:9:1: warning: this is the location of the previous definition
Quoted 4 lines
But this only occurs after you converted to
SPARSE_IRQ, right? If you add an "#ifndefNR_IRQS" tomach/irqs.hin your conversion, then everything should be okay. Then after everything is merged,NR_IRQScan be removed.
Right, I was thinking about the effects of changing this stuff after the sparse IRQ commit. But you're right, it can be done before that.
What does need to happen is the fixing of NR_IRQS etc needs to be part of the very same commit which enables sparse IRQ.
Quoted 4 lines
Can you take a look at my branch sa11x0-sparse-irq I just pushed out. It's based on your sa11x0 branch with just your sparse irq conversion commit rebased. I've built it with and without the sparse irq conversion and also merged my
sparse_irqbranch in without conflict and built that.
I'll take your word for it, and if you want to throw the relevant commits at the patch system, I'll merge them into the enormous sa11x0 branch. I need to drop the asoc branch out of it before the next merge window though as I'm not planning to push that just yet.
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
In reply to Rob HerringQuoted 13 lines · Rob Herring
arch/arm/mach-sa1100/jornada720.c +0
-1@@ -23,7 +23,6 @@#include <linux/mtd/partitions.h> #include <video/s1d13xxxfb.h> -#include <mach/hardware.h> #include <asm/hardware/sa1111.h> #include <asm/irq.h> #include <asm/page.h>
arch/arm/mach-sa1100/jornada720.c line 37
Quoted 5 lines
arch/arm/mach-sa1100/jornada720.c +2
-0@@ -34,6 +33,9 @@#include <asm/mach/map.h> #include <asm/mach/serial_sa1100.h> +#include <mach/hardware.h> +#include <mach/irqs.h>
Does this still need asm/irq.h ?
arch/arm/mach-sa1100/ssp.c line 24
Quoted 9 lines
arch/arm/mach-sa1100/ssp.c +1
-0@@ -21,6 +21,7 @@#include <asm/irq.h> #include <mach/hardware.h> +#include <mach/irqs.h>
Ditto.
drivers/tty/serial/sa1100.c line 41
Quoted 9 lines
drivers/tty/serial/sa1100.c +1
-0@@ -38,6 +38,7 @@#include <asm/irq.h> #include <mach/hardware.h> +#include <mach/irqs.h>
Ditto.
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
In reply to Rob HerringQuoted 5 lines · Rob Herring
drivers/net/ethernet/smsc/smc91x.c +0
-0
drivers/net/ethernet/smsc/smc91x.c static const char version[] = · line 98
Quoted 10 lines
drivers/net/ethernet/smsc/smc91x.c +4
-0@@ -89,6 +89,10 @@ static const char version[] =#include <asm/io.h> +#if defined(CONFIG_SA1100_ASSABET ) +#include <mach/neponset.h> +#endif +#include "smc91x.h" #ifndef SMC_NOWAIT
Why do you need this include when smc91x.h just below does this:
#elif defined(CONFIG_SA1100_ASSABET)
#include <mach/neponset.h>
/* We can only do 8-bit reads and writes in the static memory space. */
#define SMC_CAN_USE_8BIT 1 #define SMC_CAN_USE_16BIT 0 #define SMC_CAN_USE_32BIT 0 #define SMC_NOWAIT 1
/* The first two address lines aren't connected... */
#define SMC_IO_SHIFT 2
#define SMC_inb(a, r) readb((a) + (r)) #define SMC_outb(v, a, r) writeb(v, (a) + (r)) #define SMC_insb(a, r, p, l) readsb((a) + (r), p, (l)) #define SMC_outsb(a, r, p, l) writesb((a) + (r), p, (l)) #define SMC_IRQ_FLAGS (-1) /* from resource */
My guess is you have PLEB enabled which overrides this definition. Yes, this driver is rather horrible in this regard...
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
Quoted 32 lines · Russell King - ARM Linux
Quoted 5 lines · Rob Herring
drivers/net/ethernet/smsc/smc91x.c +0
-0drivers/net/ethernet/smsc/smc91x.c static const char version[] = · line 98
Quoted 10 lines
drivers/net/ethernet/smsc/smc91x.c +4
-0@@ -89,6 +89,10 @@ static const char version[] =#include <asm/io.h> +#if defined(CONFIG_SA1100_ASSABET ) +#include <mach/neponset.h> +#endif +#include "smc91x.h" #ifndef SMC_NOWAIT Why do you need this include when
smc91x.hjust below does this:#elif
defined(CONFIG_SA1100_ASSABET)#include <
mach/neponset.h>/* We can only do 8-bit reads and writes in the static memory space. */
#define SMC_CAN_USE_8BIT 1 #define SMC_CAN_USE_16BIT 0 #define SMC_CAN_USE_32BIT 0 #define SMC_NOWAIT 1/* The first two address lines aren't connected... */
#defineSMC_IO_SHIFT2
Quoted 8 lines
#define SMC_inb(a, r) readb((a) + (r)) #define SMC_outb(v, a, r) writeb(v, (a) + (r)) #define SMC_insb(a, r, p, l) readsb((a) + (r), p, (l)) #define SMC_outsb(a, r, p, l) writesb((a) + (r), p, (l)) #define SMC_IRQ_FLAGS (-1) /* from resource */My guess is you have PLEB enabled which overrides this definition. Yes, this driver is rather horrible in this regard...
Yes, that's right. I assumed I had broken things and neponset.h was no longer getting implicitly included. I guess it's not really a valid config to have both enabled if you want working networking. What do you want to do here?
Rob
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
Quoted 39 lines · Rob Herring
Quoted 38 lines · Russell King - ARM Linux
Quoted 5 lines · Rob Herring
drivers/net/ethernet/smsc/smc91x.c +0
-0drivers/net/ethernet/smsc/smc91x.c static const char version[] = · line 98
Quoted 10 lines
drivers/net/ethernet/smsc/smc91x.c +4
-0@@ -89,6 +89,10 @@ static const char version[] =#include <asm/io.h> +#if defined(CONFIG_SA1100_ASSABET ) +#include <mach/neponset.h> +#endif +#include "smc91x.h" #ifndef SMC_NOWAIT Why do you need this include when
smc91x.hjust below does this:#elif
defined(CONFIG_SA1100_ASSABET)#include <
mach/neponset.h>/* We can only do 8-bit reads and writes in the static memory space. */
#define SMC_CAN_USE_8BIT 1 #define SMC_CAN_USE_16BIT 0 #define SMC_CAN_USE_32BIT 0 #define SMC_NOWAIT 1/* The first two address lines aren't connected... */
#defineSMC_IO_SHIFT2#define SMC_inb(a, r) readb((a) + (r)) #define SMC_outb(v, a, r) writeb(v, (a) + (r)) #define SMC_insb(a, r, p, l) readsb((a) + (r), p, (l)) #define SMC_outsb(a, r, p, l) writesb((a) + (r), p, (l)) #define SMC_IRQ_FLAGS (-1) /* from resource */
Quoted 7 lines
Quoted 2 lines
My guess is you have PLEB enabled which overrides this definition. Yes, this driver is rather horrible in this regard...
Yes, that's right. I assumed I had broken things and
neponset.hwas no longer getting implicitly included. I guess it's not really a valid config to have both enabled if you want working networking. What do you want to do here?
Probably best to just drop the change to this driver - it needs fixing properly at some point. In the mean time, enabling both pleb and neponset will cause grief... ;(
PATCH 1/4 ARM: sa1100: fix sa1100 after sparse irq conversion
Quoted 3 lines · Russell King - ARM Linux
Probably best to just drop the change to this driver - it needs fixing properly at some point. In the mean time, enabling both pleb and neponset will cause grief... ;(
In case I wasn't clear, a replacement patch for 7342/1 without the smsc change please.
PATCH 2/4 ARM: sa1100: fix simpad compile error
In reply to Rob HerringFrom: Rob Herring <[email protected]>
simpad_ucb1x00_data reference has an extra '&', so remove it.
--- arch/arm/mach-sa1100/simpad.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-sa1100/simpad.c +1 -1
@@ -189,7 +189,7 @@ static struct ucb1x00_plat_data simpad_ucb1x00_data = {static struct mcp_plat_data simpad_mcp_data = { .mccr0 =MCCR0_ADM , .sclk_rate =11981000 , - .codec_pdata = &&simpad_ucb1x00_data, + .codec_pdata = &simpad_ucb1x00_data, };
Signature · 1 line
1.7.5.4
PATCH 3/4 ARM: pxa: mainstone: add missing include for IRQ_BOARD_START
In reply to Rob HerringFrom: Rob Herring <[email protected]>
As part of mach/irqs.h include removal from sparse, mainstone.h was missed. This fixes the compile of the pcmcia driver.
--- arch/arm/mach-pxa/include/mach/mainstone.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-pxa/include/mach/mainstone.h +2 -0
@@ -13,6 +13,8 @@#ifndef ASM_ARCH_MAINSTONE_H #define ASM_ARCH_MAINSTONE_H +#include <mach/irqs.h> +#define MST_ETH_PHYS PXA_CS4_PHYS#define MST_FPGA_PHYS PXA_CS2_PHYS
Signature · 1 line
1.7.5.4
PATCH 4/4 rtc: sa1100: include mach/irqs.h instead of asm/irq.h
In reply to Rob HerringFrom: Rob Herring <[email protected]>
Since asm/irq.h may not include mach/irqs.h, include mach/irqs.h directly.
--- drivers/rtc/rtc-sa1100.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-sa1100.c +1 -1
@@ -32,7 +32,7 @@#include <linux/bitops.h> #include <mach/hardware.h> -#include <asm/irq.h> +#include <mach/irqs.h> #ifdef CONFIG_ARCH_PXA #include <mach/regs-rtc.h>
Signature · 1 line
1.7.5.4