Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 649ff46e authored by Hans de Goede's avatar Hans de Goede Committed by Thomas Gleixner
Browse files

irqchip: sun4i: Fix a comment about mask register initialization



The comment was claiming that we were masking all irqs, while the code actually
*un*masks all of them.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-sunxi@googlegroups.com
Link: http://lkml.kernel.org/r/1394733834-26839-4-git-send-email-hdegoede@redhat.com


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 56af0416
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -109,7 +109,7 @@ static int __init sun4i_of_init(struct device_node *node,
	writel(0, sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(1));
	writel(0, sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(1));
	writel(0, sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(2));
	writel(0, sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(2));


	/* Mask all the interrupts */
	/* Unmask all the interrupts, ENABLE_REG(x) is used for masking */
	writel(0, sun4i_irq_base + SUN4I_IRQ_MASK_REG(0));
	writel(0, sun4i_irq_base + SUN4I_IRQ_MASK_REG(0));
	writel(0, sun4i_irq_base + SUN4I_IRQ_MASK_REG(1));
	writel(0, sun4i_irq_base + SUN4I_IRQ_MASK_REG(1));
	writel(0, sun4i_irq_base + SUN4I_IRQ_MASK_REG(2));
	writel(0, sun4i_irq_base + SUN4I_IRQ_MASK_REG(2));