Linux LED subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/3] Convert National Semiconductor GPIO drivers to gpiolib
@ 2026-11-23 12:29 Linus Walleij
  2026-11-23 12:29 ` [PATCH 1/3] gpio: convert PC8736x " Linus Walleij
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Linus Walleij @ 2026-11-23 12:29 UTC (permalink / raw)
  To: Arnd Bergmann, Greg Kroah-Hartman, Linus Walleij,
	Bartosz Golaszewski, Christer Weinigel, Jim Cromie, x86,
	Lee Jones, Pavel Machek, Griffin Kroah-Hartman
  Cc: linux-gpio, linux-leds

This is an obvious attack patch to see if anyone is really using
the custom API from these deviant drivers/char/* GPIO drivers
from the early 2000s.

Probe PC8736x through the ISA bus API and create the SCx200 GPIO device
from its PCI bridge. Register both controllers with gpiolib using port
I/O. Describe the net48xx and WRAP LED GPIOs with software nodes and
switch both LED drivers to descriptors.

Remove the private GPIO API and per-pin character devices. We assume
there are no remaining users of the old NSC GPIO userspace ABI.

An LLM assisted in the implementation and x86-32 build checks.

---
Linus Walleij (3):
      gpio: convert PC8736x to gpiolib
      gpio: convert SCx200 to gpiolib and use descriptors for board LEDs
      gpio: remove the legacy NSC GPIO API

 MAINTAINERS                          |   6 +-
 arch/x86/platform/scx200/scx200_32.c |  90 ++++-----
 drivers/char/Kconfig                 |  33 ----
 drivers/char/Makefile                |   3 -
 drivers/char/nsc_gpio.c              | 126 -------------
 drivers/char/pc8736x_gpio.c          | 352 -----------------------------------
 drivers/char/scx200_gpio.c           | 138 --------------
 drivers/gpio/Kconfig                 |  22 +++
 drivers/gpio/Makefile                |   2 +
 drivers/gpio/gpio-pc8736x.c          | 264 ++++++++++++++++++++++++++
 drivers/gpio/gpio-scx200.c           | 245 ++++++++++++++++++++++++
 drivers/leds/leds-net48xx.c          |  85 +++++----
 drivers/leds/leds-wrap.c             | 143 +++++++-------
 include/linux/nsc_gpio.h             |  41 ----
 include/linux/scx200.h               |   1 +
 include/linux/scx200_gpio.h          |  89 ---------
 16 files changed, 697 insertions(+), 943 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261123-b4-nsc-gpio-87547fbbf7b4

Best regards,
--  
Linus Walleij <linusw@kernel.org>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-23 12:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 12:29 [PATCH 0/3] Convert National Semiconductor GPIO drivers to gpiolib Linus Walleij
2026-11-23 12:29 ` [PATCH 1/3] gpio: convert PC8736x " Linus Walleij
2026-11-23 12:29 ` [PATCH 2/3] gpio: convert SCx200 to gpiolib and use descriptors for board LEDs Linus Walleij
2026-11-23 12:29 ` [PATCH 3/3] gpio: remove the legacy NSC GPIO API Linus Walleij
2026-11-23 12:44 ` [PATCH 0/3] Convert National Semiconductor GPIO drivers to gpiolib sashiko-bot
2026-11-23 12:54 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox