diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-10-19 17:24:03 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-10-19 17:24:03 -0400 |
commit | b41fb43911b4cb864812adec88d028cc6219f23e (patch) | |
tree | f383de554dc3640ec3081ad41fa34f7cab68de82 /drivers/gpio/gpio-lynxpoint.c | |
parent | 0963d59bc0bbed48b06733950f5eb167e9b9a8fa (diff) | |
parent | 31d141e3a666269a3b6fcccddb0351caf7454240 (diff) |
Merge tag 'v3.12-rc6' into devel
Linux 3.12-rc6
Conflicts:
drivers/gpio/gpio-lynxpoint.c
Diffstat (limited to 'drivers/gpio/gpio-lynxpoint.c')
-rw-r--r-- | drivers/gpio/gpio-lynxpoint.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c index 21603e6aceaf..a0804740a0b7 100644 --- a/drivers/gpio/gpio-lynxpoint.c +++ b/drivers/gpio/gpio-lynxpoint.c | |||
@@ -248,13 +248,14 @@ static void lp_gpio_irq_handler(unsigned hwirq, struct irq_desc *desc) | |||
248 | struct lp_gpio *lg = irq_data_get_irq_handler_data(data); | 248 | struct lp_gpio *lg = irq_data_get_irq_handler_data(data); |
249 | struct irq_chip *chip = irq_data_get_irq_chip(data); | 249 | struct irq_chip *chip = irq_data_get_irq_chip(data); |
250 | u32 base, pin, mask; | 250 | u32 base, pin, mask; |
251 | unsigned long reg, pending; | 251 | unsigned long reg, ena, pending; |
252 | 252 | ||
253 | /* check from GPIO controller which pin triggered the interrupt */ | 253 | /* check from GPIO controller which pin triggered the interrupt */ |
254 | for (base = 0; base < lg->chip.ngpio; base += 32) { | 254 | for (base = 0; base < lg->chip.ngpio; base += 32) { |
255 | reg = lp_gpio_reg(&lg->chip, base, LP_INT_STAT); | 255 | reg = lp_gpio_reg(&lg->chip, base, LP_INT_STAT); |
256 | ena = lp_gpio_reg(&lg->chip, base, LP_INT_ENABLE); | ||
256 | 257 | ||
257 | while ((pending = inl(reg))) { | 258 | while ((pending = (inl(reg) & inl(ena)))) { |
258 | unsigned irq; | 259 | unsigned irq; |
259 | 260 | ||
260 | pin = __ffs(pending); | 261 | pin = __ffs(pending); |