Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1586947
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/1] gpio: altera: Use handle_level_irq when configured as a level_high |
| Date | 2017-02-23 16:20 +0100 |
| Message-ID | <te3lv-323-5@gated-at.bofh.it> (permalink) |
| References | <tcLgZ-6tI-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Feb 20, 2017 at 2:41 AM, Phil Reid <preid@electromag.com.au> wrote: > When a threaded irq handler is chained attached to one of the gpio > pins when configure for level irq the altera_gpio_irq_leveL_high_handler > does not mask the interrupt while being handled by the chained irq. > This resulting in the threaded irq not getting enough cycles to complete > quickly enough before the irq was disabled as faulty. handle_level_irq > should be used in this situation instead of handle_simple_irq. > > In gpiochip_irqchip_add set default handler to handle_bad_irq as > per Documentation/gpio/driver.txt. Then set the correct handler in > the set_type callback. > > Signed-off-by: Phil Reid <preid@electromag.com.au> > --- > > Notes: > Change from v1: > - As per hint from Andy. > Set handler to handle_bad_irq in gpiochip_irqchip_add > This is inline with documentation but not what most gpio drivers do. > So I'm guessing this is now the correct way to do things. Heh I caught up on reviews and in the inbox is already this patch that fixes my review comments before I even sent them... Thanks and patch applied for fixes. Yours, Linus Walleij
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 1/1] gpio: altera: Use handle_level_irq when configured as a level_high Phil Reid <preid@electromag.com.au> - 2017-02-20 02:50 +0100 Re: [PATCH v2 1/1] gpio: altera: Use handle_level_irq when configured as a level_high Linus Walleij <linus.walleij@linaro.org> - 2017-02-23 16:20 +0100
csiph-web