On Thu, Jun 29, 2017 at 4:57 PM, Jerome Brunet <jbru...@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