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>
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);
}
unsigned long mask;
mask = readl(d->virt_base + reg_mask);
- mask &= ~(1 << pin);
+ mask |= 1 << pin;
writel(mask, d->virt_base + reg_mask);
}