From ad1b49dc80baebc51a7a04c5b07b7b1ae983bf73 Mon Sep 17 00:00:00 2001 From: Alexander Aring Date: Mon, 25 Jan 2016 22:00:32 +0100 Subject: config: initial import rpi Signed-off-by: Alexander Aring Signed-off-by: Robert Schwebel --- ...0-irqchip-bcm2836-make-code-more-readable.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 configs/platform-rpi/patches/linux-4.4/0010-irqchip-bcm2836-make-code-more-readable.patch (limited to 'configs/platform-rpi/patches/linux-4.4/0010-irqchip-bcm2836-make-code-more-readable.patch') diff --git a/configs/platform-rpi/patches/linux-4.4/0010-irqchip-bcm2836-make-code-more-readable.patch b/configs/platform-rpi/patches/linux-4.4/0010-irqchip-bcm2836-make-code-more-readable.patch new file mode 100644 index 0000000..7a4315d --- /dev/null +++ b/configs/platform-rpi/patches/linux-4.4/0010-irqchip-bcm2836-make-code-more-readable.patch @@ -0,0 +1,28 @@ +From: Andrea Merello +Date: Sat, 26 Dec 2015 13:47:24 -0800 +Subject: [PATCH] irqchip: bcm2836: make code more readable + +Avoid using hardcoded magics. We have a #define for this number. +No functional changes. + +Signed-off-by: Andrea Merello +Reviewed-by: Eric Anholt +Signed-off-by: Eric Anholt +Signed-off-by: Alexander Aring +--- + drivers/irqchip/irq-bcm2836.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c +index e314cce70201..6c9aaad0e4f1 100644 +--- a/drivers/irqchip/irq-bcm2836.c ++++ b/drivers/irqchip/irq-bcm2836.c +@@ -167,7 +167,7 @@ __exception_irq_entry bcm2836_arm_irqchip_handle_irq(struct pt_regs *regs) + u32 stat; + + stat = readl_relaxed(intc.base + LOCAL_IRQ_PENDING0 + 4 * cpu); +- if (stat & 0x10) { ++ if (stat & BIT(LOCAL_IRQ_MAILBOX0)) { + #ifdef CONFIG_SMP + void __iomem *mailbox0 = (intc.base + + LOCAL_MAILBOX0_CLR0 + 16 * cpu); -- cgit v1.2.3