Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1678237

Re: [RFC] gpio: about the need to manage irq mapping dynamically.

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [RFC] gpio: about the need to manage irq mapping dynamically.
Date 2017-06-30 00:20 +0200
Message-ID <tXPX3-5hd-1@gated-at.bofh.it> (permalink)
References (6 earlier) <tVbho-5Uv-7@gated-at.bofh.it> <tX2MG-3Ox-35@gated-at.bofh.it> <tX3pn-4kt-9@gated-at.bofh.it> <tXIsy-bi-29@gated-at.bofh.it> <tXJ5f-qk-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jun 29, 2017 at 4:57 PM, Jerome Brunet <jbrunet@baylibre.com> wrote:
> On Thu, 2017-06-29 at 16:14 +0200, Linus Walleij wrote:

>> So I changed my mind, it is fine for this type of driver to call
>> irq_create_mapping() in gpio_to_irq(). Preferably with some comment
>> around the call.
>
> What about disposing of the mapping ? there still is no counter part function to
> gpio_to_irq. It seems weird to leave them lying around, don't you think ?

Yeah that sucks. We need a way to fix that.

Is gpio_irq_prepare/unprepare the right approach?

Yours,
Linus Walleij

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [RFC] gpio: about the need to manage irq mapping dynamically. Linus Walleij <linus.walleij@linaro.org> - 2017-06-20 10:40 +0200
  Re: [RFC] gpio: about the need to manage irq mapping dynamically. Jerome Brunet <jbrunet@baylibre.com> - 2017-06-20 12:30 +0200
    Re: [RFC] gpio: about the need to manage irq mapping dynamically. Linus Walleij <linus.walleij@linaro.org> - 2017-06-20 18:40 +0200
      Re: [RFC] gpio: about the need to manage irq mapping dynamically. Jerome Brunet <jbrunet@baylibre.com> - 2017-06-20 19:30 +0200
        Re: [RFC] gpio: about the need to manage irq mapping dynamically. Linus Walleij <linus.walleij@linaro.org> - 2017-06-21 23:00 +0200
          Re: [RFC] gpio: about the need to manage irq mapping dynamically. Jerome Brunet <jbrunet@baylibre.com> - 2017-06-22 16:30 +0200
            Re: [RFC] gpio: about the need to manage irq mapping dynamically. Grygorii Strashko <grygorii.strashko@ti.com> - 2017-06-27 19:50 +0200
              Re: [RFC] gpio: about the need to manage irq mapping dynamically. Jerome Brunet <jbrunet@baylibre.com> - 2017-06-27 20:30 +0200
                Re: [RFC] gpio: about the need to manage irq mapping dynamically. Grygorii Strashko <grygorii.strashko@ti.com> - 2017-06-27 22:50 +0200
                Re: [RFC] gpio: about the need to manage irq mapping dynamically. Linus Walleij <linus.walleij@linaro.org> - 2017-06-29 16:20 +0200
                Re: [RFC] gpio: about the need to manage irq mapping dynamically. Grygorii Strashko <grygorii.strashko@ti.com> - 2017-06-30 22:00 +0200
                Re: [RFC] gpio: about the need to manage irq mapping dynamically. Linus Walleij <linus.walleij@linaro.org> - 2017-07-02 17:10 +0200
                Re: [RFC] gpio: about the need to manage irq mapping dynamically. Linus Walleij <linus.walleij@linaro.org> - 2017-06-29 16:20 +0200
                Re: [RFC] gpio: about the need to manage irq mapping dynamically. Jerome Brunet <jbrunet@baylibre.com> - 2017-06-29 17:00 +0200
                Re: [RFC] gpio: about the need to manage irq mapping dynamically. Marc Zyngier <marc.zyngier@arm.com> - 2017-06-29 19:00 +0200
                Re: [RFC] gpio: about the need to manage irq mapping dynamically. Jerome Brunet <jbrunet@baylibre.com> - 2017-06-29 20:40 +0200
                Re: [RFC] gpio: about the need to manage irq mapping dynamically. Linus Walleij <linus.walleij@linaro.org> - 2017-06-30 00:20 +0200

csiph-web