Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1619938
| From | Boris Brezillon <boris.brezillon@free-electrons.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] gpio: Add a driver for Cadence GPIO controller |
| Date | 2017-04-10 15:30 +0200 |
| Message-ID | <tuHyk-1bY-49@gated-at.bofh.it> (permalink) |
| References | <tqokx-T6-1@gated-at.bofh.it> <tqEfE-451-29@gated-at.bofh.it> <tqGAN-5EJ-1@gated-at.bofh.it> <tqMPU-1Sb-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 30 Mar 2017 18:26:01 +0100
Simon Hatliff <hatliff@cadence.com> wrote:
> Hi Boris, Linus,
>
> On 30/03/17 12:29, Boris Brezillon wrote:
> > Hi Linus,
> >
> > On Thu, 30 Mar 2017 11:03:45 +0200
> > Linus Walleij <linus.walleij@linaro.org> wrote:
> >
> >> On Wed, Mar 29, 2017 at 6:04 PM, Boris Brezillon
> >> <boris.brezillon@free-electrons.com> wrote:
> >>
> >>> Add a driver for Cadence GPIO controller.
> >> IIUC Cadence do a lot of things. Are there variants of this controller?
> > I'll let Simon answer that one.
> This is a controller that has been around since 2000. It is not
> configurable in any way, so there are no variants. Cadence do not offer
> any other GPIO controllers as IP.
> >>> +static irqreturn_t cdns_gpio_irq_handler(int irq, void *dev)
> >>> +{
> >>> + struct cdns_gpio_chip *cgpio = dev;
> >>> + unsigned long status;
> >>> + int hwirq;
> >>> +
> >>> + /*
> >>> + * FIXME: If we have an edge irq that is masked we might lose it
> >>> + * since reading the STATUS register clears all IRQ flags.
> >>> + * We could store the status of all masked IRQ in the cdns_gpio_chip
> >>> + * struct but we then have no way to re-trigger the interrupt when
> >>> + * it is unmasked.
> >>> + */
> >> It is marked FIXME but do you think it can even be fixed? It seems
> >> like a hardware flaw. :(
> > Maybe not. Unless Simon comes up with a magic register to re-trigger an
> > interrupt :-).
> There are no plans to update the controller.
Linus, what should I do here? Drop support for edge interrupts?
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] gpio: Add a driver for Cadence GPIO controller Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-03-29 18:10 +0200
[PATCH 2/2] dt-bindings: gpio: Document Cadence GPIO controller bindings Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-03-29 18:10 +0200
Re: [PATCH 2/2] dt-bindings: gpio: Document Cadence GPIO controller bindings Linus Walleij <linus.walleij@linaro.org> - 2017-03-30 10:40 +0200
Re: [PATCH 1/2] gpio: Add a driver for Cadence GPIO controller Linus Walleij <linus.walleij@linaro.org> - 2017-03-30 11:10 +0200
Re: [PATCH 1/2] gpio: Add a driver for Cadence GPIO controller Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-03-30 13:40 +0200
Re: [PATCH 1/2] gpio: Add a driver for Cadence GPIO controller Linus Walleij <linus.walleij@linaro.org> - 2017-03-30 14:00 +0200
Re: [PATCH 1/2] gpio: Add a driver for Cadence GPIO controller Simon Hatliff <hatliff@cadence.com> - 2017-03-30 20:20 +0200
Re: [PATCH 1/2] gpio: Add a driver for Cadence GPIO controller Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-03-31 15:30 +0200
Re: [PATCH 1/2] gpio: Add a driver for Cadence GPIO controller Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-04-10 15:30 +0200
Re: [PATCH 1/2] gpio: Add a driver for Cadence GPIO controller Linus Walleij <linus.walleij@linaro.org> - 2017-04-24 15:10 +0200
csiph-web