Commit 3da23f27 authored by Tomasz Figa's avatar Tomasz Figa Committed by Kukjin Kim

pinctrl: exynos: Fix typos in gpio/wkup _irq_mask

To mask GPIO/wakeup IRQ, the corresponding bit in mask register has to
be set.
Signed-off-by: default avatarTomasz Figa <t.figa@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent ee2f573c
......@@ -58,7 +58,7 @@ static void exynos_gpio_irq_mask(struct irq_data *irqd)
unsigned long mask;
mask = readl(d->virt_base + reg_mask);
mask |= ~(1 << edata->pin);
mask |= 1 << edata->pin;
writel(mask, d->virt_base + reg_mask);
}
......@@ -290,7 +290,7 @@ static void exynos_wkup_irq_mask(struct irq_data *irqd)
unsigned long mask;
mask = readl(d->virt_base + reg_mask);
mask &= ~(1 << pin);
mask |= 1 << pin;
writel(mask, d->virt_base + reg_mask);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment