mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04: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 <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Kukjin Kim <[email protected]>
This commit is contained in:
parent
ee2f573c42
commit
3da23f27a0
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue