[PATCH v1 0/7] gpiolib: kill gpio_request_one()

Andy Shevchenko posted 7 patches 1 week, 2 days ago
Documentation/driver-api/gpio/consumer.rst    |  2 +-
arch/arm/mach-pxa/spitz_pm.c                  |  3 +-
arch/mips/bcm47xx/workarounds.c               |  8 ++-
arch/mips/bcm63xx/boards/board_bcm963xx.c     | 10 ++--
.../include/asm/mach-bcm63xx/board_bcm963xx.h |  3 -
drivers/gpio/gpiolib-legacy.c                 | 31 ----------
drivers/media/usb/em28xx/em28xx-dvb.c         | 57 ++++++++-----------
include/linux/gpio/legacy.h                   |  8 ---
8 files changed, 39 insertions(+), 83 deletions(-)
[PATCH v1 0/7] gpiolib: kill gpio_request_one()
Posted by Andy Shevchenko 1 week, 2 days ago
This is the finilazation of the work announced in the commit 61e1fd2abca4
("gpiolib: legacy: Make sure we kill gpio_request_one() first"). With this
small series we kill gpio_request_one() and leave only two legacy calls
devm_gpio_request_one() and gpio_request(), where the managed one has only
a few users and high chances to be killed soon as well.

The series is supposed to go via GPIO tree (due to nature of the last patch)
with possible immutable branch for others. Please, ack.

Andy Shevchenko (7):
  ARM: pxa: spitz: Open code gpio_request_one()
  media: em28xx: Split em28xx_pctv_290e_set_lna_gpio() helper
  media: em28xx: Open code gpio_request_one()
  MIPS: BCM47XX: Open code gpio_request_one()
  MIPS: BCM63XX: Remove one time use ephy_reset_gpio_flags
  MIPS: BCM63XX: Open code gpio_request_one()
  gpiolib: Get rid of not used anymore gpio_request_one()

 Documentation/driver-api/gpio/consumer.rst    |  2 +-
 arch/arm/mach-pxa/spitz_pm.c                  |  3 +-
 arch/mips/bcm47xx/workarounds.c               |  8 ++-
 arch/mips/bcm63xx/boards/board_bcm963xx.c     | 10 ++--
 .../include/asm/mach-bcm63xx/board_bcm963xx.h |  3 -
 drivers/gpio/gpiolib-legacy.c                 | 31 ----------
 drivers/media/usb/em28xx/em28xx-dvb.c         | 57 ++++++++-----------
 include/linux/gpio/legacy.h                   |  8 ---
 8 files changed, 39 insertions(+), 83 deletions(-)

-- 
2.50.1
Re: [PATCH v1 0/7] gpiolib: kill gpio_request_one()
Posted by Linus Walleij 18 hours ago
On Wed, Jul 15, 2026 at 8:51 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> This is the finilazation of the work announced in the commit 61e1fd2abca4
> ("gpiolib: legacy: Make sure we kill gpio_request_one() first"). With this
> small series we kill gpio_request_one() and leave only two legacy calls
> devm_gpio_request_one() and gpio_request(), where the managed one has only
> a few users and high chances to be killed soon as well.
>
> The series is supposed to go via GPIO tree (due to nature of the last patch)
> with possible immutable branch for others. Please, ack.

The kernel is clearly a better place after these patches than before it, so:
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij