Skip to content

gpio: replace nocache ioremap functions with devm_platform_ioremap_resource()

Bartosz Golaszewski linux-gpio linux-renesas-soc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6gpio: xgene: remove redundant error messagedrivers/gpio/gpio-xgene.c+7 -160 replies
2/6gpio: xgene: use devm_platform_ioremap_resource()drivers/gpio/gpio-xgene.c+3 -90 replies
3/6gpio: em: use devm_platform_ioremap_resource()drivers/gpio/gpio-em.c+8 -121 reply
4/6gpio: ath79: use devm_platform_ioremap_resource()drivers/gpio/gpio-ath79.c+3 -70 replies
5/6gpio: htc-egpio: use devm_platform_ioremap_resource()drivers/gpio/gpio-htc-egpio.c+2 -70 replies
6/6gpio: htc-egpio: remove redundant error messagedrivers/gpio/gpio-htc-egpio.c+11 -170 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGeert UytterhoevenLinus Walleij
SeriesR-b
1/6
2/6
3/6R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] gpio: replace nocache ioremap functions with devm_platform_ioremap_resource()

From: Bartosz Golaszewski <[email protected]>

According to Arnd Bergmann:

"The only architecture that actually has a difference between ioremap() and ioremap_nocache() seems to be ia64. I would generally assume that any driver using ioremap_nocache() that is not ia64 specific should just use ioremap()."

This series converts all users of nocache ioremap variants that aren't ia64-specific to using devm_platform_ioremap_resource().

Most of these don't call request_mem_region() currently, which devm_platform_ioremap_resource() does implicitly, so testing would be appreciated.

Included are two minor fixes for xgene and htc-egpio.

Bartosz Golaszewski (6):
gpio: xgene: remove redundant error message
gpio: xgene: use devm_platform_ioremap_resource()
gpio: em: use devm_platform_ioremap_resource()
gpio: ath79: use devm_platform_ioremap_resource()
gpio: htc-egpio: use devm_platform_ioremap_resource()
gpio: htc-egpio: remove redundant error message

 drivers/gpio/gpio-ath79.c     | 10 +++-------
 drivers/gpio/gpio-em.c        | 20 ++++++++-----------
 drivers/gpio/gpio-htc-egpio.c | 37 ++++++++++++-----------------------
 drivers/gpio/gpio-xgene.c     | 27 ++++++-------------------
 4 files changed, 30 insertions(+), 64 deletions(-)
Signature · 1 line
2.23.0