Skip to content

gpio: use devres for irq generic chip

Bartosz Golaszewski linux-gpio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyIn review
  2. v16 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- added three patches which explicitly disable driver unbinding for non-modular drivers, only updated those built-in modules which already use devres in their probe() functions
- left out the sodaville patch since it explictly says it doesn't free any resources

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8gpio: mxc: disallow unbinding the driverdrivers/gpio/gpio-mxc.c+1 -00 replies
2/8gpio: mxs: disallow unbinding the driverdrivers/gpio/gpio-mxs.c+1 -00 replies
3/8gpio: sta2x11: disallow unbinding the driverdrivers/gpio/gpio-sta2x11.c+1 -00 replies
4/8gpio: sta2x11: use devres for irq generic chipdrivers/gpio/gpio-sta2x11.c+9 -40 replies
5/8gpio: ml-ioh: use devres for irq generic chipdrivers/gpio/gpio-ml-ioh.c+7 -50 replies
6/8gpio: pch: use devres for irq generic chipdrivers/gpio/gpio-pch.c+7 -50 replies
7/8gpio: mxc: use devres for irq generic chipdrivers/gpio/gpio-mxc.c+10 -50 replies
8/8gpio: mxs: use devres for irq generic chipdrivers/gpio/gpio-mxs.c+9 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] gpio: use devres for irq generic chip

We now provide resource managed versions of irq_alloc_generic_chip() and irq_setup_generic_chip(). Use them in all relevant gpio drivers.

v1 -> v2:
- added three patches which explicitly disable driver unbinding for non-modular drivers, only updated those built-in modules which already use devres in their probe() functions
- left out the sodaville patch since it explictly says it doesn't free any resources

Bartosz Golaszewski (8):
gpio: mxc: disallow unbinding the driver
gpio: mxs: disallow unbinding the driver
gpio: sta2x11: disallow unbinding the driver
gpio: sta2x11: use devres for irq generic chip
gpio: ml-ioh: use devres for irq generic chip
gpio: pch: use devres for irq generic chip
gpio: mxc: use devres for irq generic chip
gpio: mxs: use devres for irq generic chip

 drivers/gpio/gpio-ml-ioh.c  | 12 +++++++-----
 drivers/gpio/gpio-mxc.c     | 16 +++++++++++-----
 drivers/gpio/gpio-mxs.c     | 15 ++++++++++-----
 drivers/gpio/gpio-pch.c     | 12 +++++++-----
 drivers/gpio/gpio-sta2x11.c | 14 ++++++++++----
 5 files changed, 45 insertions(+), 24 deletions(-)
Signature · 1 line
2.13.2