mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
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: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
parent
ee2f573c42
commit
3da23f27a0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user