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


Groups > linux.kernel > #1600582 > unrolled thread

Re: [PATCH 00/12] gpio: use resource management for irq descriptors

Started byLinus Walleij <linus.walleij@linaro.org>
First post2017-03-14 16:20 +0100
Last post2017-03-14 16:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 00/12] gpio: use resource management for irq descriptors Linus Walleij <linus.walleij@linaro.org> - 2017-03-14 16:20 +0100
    Re: [PATCH 00/12] gpio: use resource management for irq descriptors Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2017-03-14 16:50 +0100

#1600582 — Re: [PATCH 00/12] gpio: use resource management for irq descriptors

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-03-14 16:20 +0100
SubjectRe: [PATCH 00/12] gpio: use resource management for irq descriptors
Message-ID<tkWoW-1WG-19@gated-at.bofh.it>
On Sat, Mar 4, 2017 at 5:23 PM, Bartosz Golaszewski
<bgolaszewski@baylibre.com> wrote:

> The following series uses the recently introduced set of
> devm_irq_alloc_desc*() helpers in the GPIO drivers.
>
> While we're at it: if the modified drivers called request_irq(), it
> was changed to devm_request_irq() too.
>
> Some drivers correctly clean up resources (e.g. gpio-mockup,
> gpio-pch) - for them this change leads to an actual code shrink.
>
> Other drivers are meant to be built-in and the devices they control
> are never removed (e.g. gpio-pxa, gpio-davinci), so they deliberately
> omit the cleanup. Still: in case something changes it's better to free
> the resources - especially since these drivers already use other
> devm_* routines like devm_kzalloc() etc.
>
> The last group of drivers are the ones which can be compiled as
> modules, but leak resources unintentionally (e.g. gpio-twl4030,
> gpio-omap). This change fixes the interrupt descriptor leaks, but some
> drivers will require additional work since they still don't release
> other resources.
>
> The following drivers were tested: gpio-mockup, gpio-omap
> and gpio-davinci. The rest was compile-tested only.
>
> Bartosz Golaszewski (12):
>   gpio: mockup: use devm_irq_alloc_descs()
>   gpio: twl4030: use devm_irq_alloc_descs()
>   gpio: omap: use devm_irq_alloc_descs()
>   gpio: pch: use resource management for irqs
>   gpio: ml-ioh: use resource management for irqs
>   gpio: xlp: use resource management for irqs
>   gpio: pxa: use devm_irq_alloc_descs()
>   gpio: davinci: use devm_irq_alloc_descs()
>   gpio: sodaville: use resource management for irqs
>   gpio: mxc: use devm_irq_alloc_descs()
>   gpio: mxs: use devm_irq_alloc_descs()
>   gpio: sta2x11: use resource management for irqs

Excellent series, applied all and pushing to the build servers for
testing.

Interested in the job to go over to drivers/pinctrl and check if we
have some dangling descs there if this works out?

Yours,
Linus Walleij

[toc] | [next] | [standalone]


#1600632

FromBartosz Golaszewski <bgolaszewski@baylibre.com>
Date2017-03-14 16:50 +0100
Message-ID<tkWRX-29k-11@gated-at.bofh.it>
In reply to#1600582
2017-03-14 16:18 GMT+01:00 Linus Walleij <linus.walleij@linaro.org>:
>
> Excellent series, applied all and pushing to the build servers for
> testing.
>

Thanks!

> Interested in the job to go over to drivers/pinctrl and check if we
> have some dangling descs there if this works out?
>

If time permits, I will be improving the resource management for
interrupts (generic-chip, domains etc.), so I may end up in pinctrl at
some point.

Best regards,
Bartosz Golaszewski

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web