Message ID | 1414454528-24240-10-git-send-email-dbaryshkov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Oct 28, 2014 at 1:02 AM, Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> wrote: > As new locomo driver properly supports SPARSE_IRQ, stop playing with > NR_IRQS on sa1100 (locomo was the last chip requiring NR_IRQ tricks). > > Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> That's right! By moving to irqdomain things get even better :) Yours, Linus Walleij
2014-10-31 10:50 GMT+03:00 Linus Walleij <linus.walleij@linaro.org>: > On Tue, Oct 28, 2014 at 1:02 AM, Dmitry Eremin-Solenikov > <dbaryshkov@gmail.com> wrote: > >> As new locomo driver properly supports SPARSE_IRQ, stop playing with >> NR_IRQS on sa1100 (locomo was the last chip requiring NR_IRQ tricks). >> >> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> > > That's right! By moving to irqdomain things get even better :) That is a separate topic in my repo. I'll push that after finishing with LoCoMo.
diff --git a/arch/arm/mach-sa1100/include/mach/irqs.h b/arch/arm/mach-sa1100/include/mach/irqs.h index 3790298..99e7202 100644 --- a/arch/arm/mach-sa1100/include/mach/irqs.h +++ b/arch/arm/mach-sa1100/include/mach/irqs.h @@ -68,22 +68,7 @@ #define IRQ_BOARD_START 49 #define IRQ_BOARD_END 65 -/* - * Figure out the MAX IRQ number. - * - * Neponset, SA1111 and UCB1x00 are sparse IRQ aware, so can dynamically - * allocate their IRQs above NR_IRQS. - * - * LoCoMo has 4 additional IRQs, but is not sparse IRQ aware, and so has - * to be included in the NR_IRQS calculation. - */ -#ifdef CONFIG_SHARP_LOCOMO -#define NR_IRQS_LOCOMO 4 -#else -#define NR_IRQS_LOCOMO 0 -#endif - #ifndef NR_IRQS -#define NR_IRQS (IRQ_BOARD_START + NR_IRQS_LOCOMO) +#define NR_IRQS IRQ_BOARD_START #endif -#define SA1100_NR_IRQS (IRQ_BOARD_START + NR_IRQS_LOCOMO) +#define SA1100_NR_IRQS IRQ_BOARD_START
As new locomo driver properly supports SPARSE_IRQ, stop playing with NR_IRQS on sa1100 (locomo was the last chip requiring NR_IRQ tricks). Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> --- arch/arm/mach-sa1100/include/mach/irqs.h | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-)