projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
905a511
)
pinctrl: sunxi: Fix masking when setting irq type
author
Hans de Goede
<hdegoede@redhat.com>
Mon, 17 Feb 2014 21:19:43 +0000
(22:19 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 5 Mar 2014 01:57:36 +0000
(09:57 +0800)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sunxi.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-sunxi.c
b/drivers/pinctrl/pinctrl-sunxi.c
index
787f352
..
f9fabe9
100644
(file)
--- a/
drivers/pinctrl/pinctrl-sunxi.c
+++ b/
drivers/pinctrl/pinctrl-sunxi.c
@@
-585,7
+585,7
@@
static int sunxi_pinctrl_irq_set_type(struct irq_data *d,
spin_lock_irqsave(&pctl->lock, flags);
regval = readl(pctl->membase + reg);
- regval &= ~
IRQ_CFG_IRQ_MASK
;
+ regval &= ~
(IRQ_CFG_IRQ_MASK << index)
;
writel(regval | (mode << index), pctl->membase + reg);
spin_unlock_irqrestore(&pctl->lock, flags);