Skip to content

gpiolib cleanups

Andy Shevchenko linux-acpi linux-arch linux-devicetree linux-doc linux-gpio linux-input linux-m68k linux-media linux-omap linux-samsung-soc linux-sh linux-tegra linux-wireless linux-wpan linuxppc-dev lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest18 patches 14 repliesIn review
  2. v312 patches 9 repliesSuperseded

Changes in v4 from the cover letter

- incorporated Linus Walleij's patches
- reworked touchscreen patch to have bare minimum changes (Dmitry)
- described changes in gpio-aggregator in full (Geert)
- addressed compilation errors (LKP)
- added tags (Geert, Lee, Vincenzo)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18ARM: orion/gpio: Use the right includearch/arm/plat-orion/gpio.c+3 -20 replies
2/18ARM: s3c24xx: Use the right includearch/arm/mach-s3c/s3c64xx.c+1 -14 replies
3/18hte: tegra-194: Use proper includesdrivers/hte/hte-tegra194-test.c+5 -51 reply
4/18gpiolib: Make the legacy <linux/gpio.h> consumer-onlyinclude/asm-generic/gpio.h+0 -10 replies
5/18gpiolib: remove empty asm/gpio.h filesarch/arm/Kconfig arch/arm/include/asm/gpio.h arch/sh/Kconfig +2 more+1 -680 replies
6/18gpiolib: coldfire: remove custom asm/gpio.harch/m68k/Kconfig.cpu arch/m68k/include/asm/gpio.h drivers/gpio/Kconfig +1 more+0 -1110 replies
7/18gpiolib: remove asm-generic/gpio.hMAINTAINERS arch/m68k/include/asm/mcfgpio.h drivers/gpio/gpio-davinci.c +3 more+85 -1610 replies
8/18gpiolib: remove gpio_set_debounce()Documentation/driver-api/gpio/legacy.rst Documentation/translations/zh_CN/driver-api/gpio/legacy.rst Documentation/translations/zh_TW/gpio.txt +2 more+3 -161 reply
9/18gpiolib: remove legacy gpio_export()Documentation/admin-guide/gpio/sysfs.rst Documentation/driver-api/gpio/legacy.rst Documentation/translations/zh_CN/driver-api/gpio/legacy.rst +7 more+21 -990 replies
10/18gpiolib: split linux/gpio/driver.h out of linux/gpio.harch/arm/mach-omap1/irq.c arch/arm/mach-orion5x/board-rd88f5182.c arch/arm/mach-sa1100/assabet.c +2 more+5 -00 replies
11/18gpiolib: split of_mm_gpio_chip out of linux/of_gpio.harch/powerpc/platforms/44x/Kconfig arch/powerpc/platforms/4xx/gpio.c arch/powerpc/platforms/8xx/Kconfig +12 more+40 -610 replies
12/18gpio: aggregator: Add missing header(s)drivers/gpio/gpio-aggregator.c+5 -41 reply
13/18gpio: reg: Add missing header(s)drivers/gpio/gpio-reg.c+10 -21 reply
14/18gpio: regmap: Add missing header(s)drivers/gpio/gpio-regmap.c+9 -31 reply
15/18gpiolib: Drop unused forward declaration from driver.hinclude/linux/gpio/driver.h+0 -10 replies
16/18gpiolib: Deduplicate forward declarations in consumer.hinclude/linux/gpio/consumer.h+1 -61 reply
17/18gpiolib: Group forward declarations in consumer.hinclude/linux/gpio/consumer.h+1 -21 reply
18/18gpiolib: Clean up headersdrivers/gpio/gpiolib-acpi.c drivers/gpio/gpiolib-acpi.h drivers/gpio/gpiolib-of.c +7 more+72 -351 reply

Reviews trailers per patch

15 of 18 patches have a Reviewed-by or Acked-by.

PatchAndy ShevchenkoLinus WalleijLee JonesGeert UytterhoevenBartosz GolaszewskiVincenzo PalazzoKrzysztof KozlowskiDipen PatelDmitry Torokhov
1/18
2/18A-b
3/18A-b
4/18
5/18R-b R-b R-b A-b R-b
6/18R-b R-b R-b A-b
7/18R-b R-b
8/18R-b R-b A-b
9/18R-b R-b
10/18R-b R-b A-b
11/18R-b R-b
12/18R-b R-b
13/18R-b
14/18R-b
15/18
16/18R-b
17/18R-b
18/18R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 9 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/18] gpiolib cleanups

These are some older patches Arnd did last year, rebased to linux-next-20230208. On top there are Andy's patches regarding similar topic. The series starts with Linus Walleij's patches.

The main goal is to remove some of the legacy bits of the gpiolib interfaces, where the corner cases are easily avoided or replaced with gpio descriptor based interfaces.

The idea is to get an immutable branch and route the whole series via GPIO tree.

Changes in v4:
- incorporated Linus Walleij's patches
- reworked touchscreen patch to have bare minimum changes (Dmitry)
- described changes in gpio-aggregator in full (Geert)
- addressed compilation errors (LKP)
- added tags (Geert, Lee, Vincenzo)

Changes in v3:
- reworked touchscreen patch in accordance with Dmitry's comments
- rebased on the latest Linux Next
- added on top Andy's series

Changes in v2:
- dropped patch 8 after Andy's identical patch was merged
- rebase on latest gpio tree
- leave unused gpio_cansleep() in place for now
- address feedback from Andy Shevchenko

Andy Shevchenko (7):
gpio: aggregator: Add missing header(s)
gpio: reg: Add missing header(s)
gpio: regmap: Add missing header(s)
gpiolib: Drop unused forward declaration from driver.h
gpiolib: Deduplicate forward declarations in consumer.h
gpiolib: Group forward declarations in consumer.h
gpiolib: Clean up headers

Arnd Bergmann (7):
gpiolib: remove empty asm/gpio.h files
gpiolib: coldfire: remove custom asm/gpio.h
gpiolib: remove asm-generic/gpio.h
gpiolib: remove gpio_set_debounce()
gpiolib: remove legacy gpio_export()
gpiolib: split linux/gpio/driver.h out of linux/gpio.h
gpiolib: split of_mm_gpio_chip out of linux/of_gpio.h

Linus Walleij (4):
ARM: orion/gpio: Use the right include
ARM: s3c24xx: Use the right include
hte: tegra-194: Use proper includes
gpiolib: Make the legacy <linux/gpio.h> consumer-only

 Documentation/admin-guide/gpio/sysfs.rst      |   2 +-
 Documentation/driver-api/gpio/legacy.rst      |  23 ---
 .../zh_CN/driver-api/gpio/legacy.rst          |  20 ---
 Documentation/translations/zh_TW/gpio.txt     |  19 ---
 MAINTAINERS                                   |   1 -
 arch/arm/Kconfig                              |   1 -
 arch/arm/include/asm/gpio.h                   |  21 ---
 arch/arm/mach-omap1/irq.c                     |   1 +
 arch/arm/mach-omap2/pdata-quirks.c            |   9 +-
 arch/arm/mach-orion5x/board-rd88f5182.c       |   1 +
 arch/arm/mach-s3c/s3c64xx.c                   |   2 +-
 arch/arm/mach-sa1100/assabet.c                |   1 +
 arch/arm/plat-orion/gpio.c                    |   5 +-
 arch/m68k/Kconfig.cpu                         |   1 -
 arch/m68k/include/asm/gpio.h                  |  95 -----------
 arch/m68k/include/asm/mcfgpio.h               |   2 +-
 arch/powerpc/platforms/44x/Kconfig            |   1 +
 arch/powerpc/platforms/4xx/gpio.c             |   2 +-
 arch/powerpc/platforms/8xx/Kconfig            |   1 +
 arch/powerpc/platforms/8xx/cpm1.c             |   2 +-
 arch/powerpc/platforms/Kconfig                |   2 +
 arch/powerpc/sysdev/cpm_common.c              |   2 +-
 arch/sh/Kconfig                               |   1 -
 arch/sh/boards/board-magicpanelr2.c           |   1 +
 arch/sh/boards/mach-ap325rxa/setup.c          |   7 +-
 arch/sh/include/asm/gpio.h                    |  45 ------
 drivers/gpio/Kconfig                          |  19 ++-
 drivers/gpio/TODO                             |  15 +-
 drivers/gpio/gpio-aggregator.c                |   9 +-
 drivers/gpio/gpio-altera.c                    |   2 +-
 drivers/gpio/gpio-davinci.c                   |   2 -
 drivers/gpio/gpio-mm-lantiq.c                 |   2 +-
 drivers/gpio/gpio-mpc5200.c                   |   2 +-
 drivers/gpio/gpio-reg.c                       |  12 +-
 drivers/gpio/gpio-regmap.c                    |  12 +-
 drivers/gpio/gpiolib-acpi.c                   |  10 +-
 drivers/gpio/gpiolib-acpi.h                   |   1 -
 drivers/gpio/gpiolib-of.c                     |   9 +-
 drivers/gpio/gpiolib-of.h                     |   1 -
 drivers/gpio/gpiolib-swnode.c                 |   5 +-
 drivers/gpio/gpiolib-sysfs.c                  |  25 ++-
 drivers/gpio/gpiolib.c                        |   9 +-
 drivers/hte/hte-tegra194-test.c               |  10 +-
 drivers/input/touchscreen/ads7846.c           |   5 +-
 drivers/media/pci/sta2x11/sta2x11_vip.c       |  10 +-
 drivers/net/ieee802154/ca8210.c               |   3 +-
 .../broadcom/brcm80211/brcmsmac/led.c         |   1 +
 drivers/pinctrl/core.c                        |   1 -
 drivers/soc/fsl/qe/gpio.c                     |   2 +-
 include/asm-generic/gpio.h                    | 147 ------------------
 include/linux/gpio.h                          | 104 ++++++++-----
 include/linux/gpio/consumer.h                 |  24 +--
 include/linux/gpio/driver.h                   |  31 +++-
 .../legacy-of-mm-gpiochip.h}                  |  33 +---
 include/linux/mfd/ucb1x00.h                   |   1 +
 include/linux/of_gpio.h                       |  21 ---
 56 files changed, 240 insertions(+), 556 deletions(-)
 delete mode 100644 arch/arm/include/asm/gpio.h
 delete mode 100644 arch/m68k/include/asm/gpio.h
 delete mode 100644 arch/sh/include/asm/gpio.h
 delete mode 100644 include/asm-generic/gpio.h
 copy include/linux/{of_gpio.h => gpio/legacy-of-mm-gpiochip.h} (50%)
Signature · 1 line
2.39.1