diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-12-04 08:48:17 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-04 08:48:17 -0500 |
commit | 33e0aae11e4854c792e9871f94da6d28bf2e2bb8 (patch) | |
tree | d75422fcd621bb1a4ec019f7ab625e3bc99ffaff /drivers/gpio/gpio-lynxpoint.c | |
parent | 9fb1f39eb2d6707d265087ee186376e24995f55a (diff) | |
parent | eb7cce1ea96b6399672abce787598f6e7a4352c3 (diff) |
Merge branch 'mark-irqs' into devel
Conflicts:
drivers/gpio/gpio-em.c
Diffstat (limited to 'drivers/gpio/gpio-lynxpoint.c')
-rw-r--r-- | drivers/gpio/gpio-lynxpoint.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c index c283cd3b247a..66b18535b5ae 100644 --- a/drivers/gpio/gpio-lynxpoint.c +++ b/drivers/gpio/gpio-lynxpoint.c | |||
@@ -301,6 +301,26 @@ static void lp_irq_disable(struct irq_data *d) | |||
301 | spin_unlock_irqrestore(&lg->lock, flags); | 301 | spin_unlock_irqrestore(&lg->lock, flags); |
302 | } | 302 | } |
303 | 303 | ||
304 | static unsigned int lp_irq_startup(struct irq_data *d) | ||
305 | { | ||
306 | struct lp_gpio *lg = irq_data_get_irq_chip_data(d); | ||
307 | |||
308 | if (gpio_lock_as_irq(&lg->chip, irqd_to_hwirq(d))) | ||
309 | dev_err(lg->chip.dev, | ||
310 | "unable to lock HW IRQ %lu for IRQ\n", | ||
311 | irqd_to_hwirq(d)); | ||
312 | lp_irq_enable(d); | ||
313 | return 0; | ||
314 | } | ||
315 | |||
316 | static void lp_irq_shutdown(struct irq_data *d) | ||
317 | { | ||
318 | struct lp_gpio *lg = irq_data_get_irq_chip_data(d); | ||
319 | |||
320 | lp_irq_disable(d); | ||
321 | gpio_unlock_as_irq(&lg->chip, irqd_to_hwirq(d)); | ||
322 | } | ||
323 | |||
304 | static struct irq_chip lp_irqchip = { | 324 | static struct irq_chip lp_irqchip = { |
305 | .name = "LP-GPIO", | 325 | .name = "LP-GPIO", |
306 | .irq_mask = lp_irq_mask, | 326 | .irq_mask = lp_irq_mask, |
@@ -308,6 +328,8 @@ static struct irq_chip lp_irqchip = { | |||
308 | .irq_enable = lp_irq_enable, | 328 | .irq_enable = lp_irq_enable, |
309 | .irq_disable = lp_irq_disable, | 329 | .irq_disable = lp_irq_disable, |
310 | .irq_set_type = lp_irq_type, | 330 | .irq_set_type = lp_irq_type, |
331 | .irq_startup = lp_irq_startup, | ||
332 | .irq_shutdown = lp_irq_shutdown, | ||
311 | .flags = IRQCHIP_SKIP_SET_WAKE, | 333 | .flags = IRQCHIP_SKIP_SET_WAKE, |
312 | }; | 334 | }; |
313 | 335 | ||