public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO
@ 2026-03-04  9:02 Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 01/14] arm64: Kconfig: drop unneeded dependency " Bartosz Golaszewski
                   ` (14 more replies)
  0 siblings, 15 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

NOTE: Each patch in this series can be picked up independently into
maintainer trees.

CONFIG_OF_GPIO is a switch that enables the compilation of the gpiolib-of
module. The module itself handles GPIO lookup via the OF-node tree and
is automatically enabled on all OF systems. It does not export any
public symbols to drivers. There is no reason for them to select or
depend on it in Kconfig.

This series removes any such dependencies from Kconfig. If a given entry
has no other dependencies than OF_GPIO - they are converted to OF to
avoid new symbols popping up for everyone in make config.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Bartosz Golaszewski (14):
      arm64: Kconfig: drop unneeded dependency on OF_GPIO
      arc: axs10x: drop unneeded dependency on OF_GPIO
      powerpc: drop unneeded dependency on OF_GPIO
      net: mdio: drop unneeded dependency on OF_GPIO
      regulator: drop unneeded dependencies on OF_GPIO
      gpio: drop unneeded Kconfig dependencies on OF_GPIO
      pinctrl: Kconfig: drop unneeded dependencies on OF_GPIO
      leds: Kconfig: drop unneeded dependency on OF_GPIO
      hwmon: drop unneeded dependency on OF_GPIO
      watchdog: convert the Kconfig dependency on OF_GPIO to OF
      bus: drop unneeded dependency on OF_GPIO
      staging: media: max96712: drop unneeded dependency on OF_GPIO
      power: reset: drop unneeded dependencies on OF_GPIO
      media: i2c: drop unneeded dependencies on OF_GPIO

 arch/arc/plat-axs10x/Kconfig           |  1 -
 arch/arm64/Kconfig.platforms           |  1 -
 arch/powerpc/platforms/85xx/Kconfig    |  1 -
 drivers/bus/Kconfig                    |  2 +-
 drivers/gpio/Kconfig                   | 53 +++++++++++-----------------------
 drivers/hwmon/Kconfig                  |  1 -
 drivers/leds/Kconfig                   |  1 -
 drivers/media/i2c/Kconfig              | 12 ++++----
 drivers/net/mdio/Kconfig               |  2 +-
 drivers/pinctrl/Kconfig                |  9 ------
 drivers/pinctrl/bcm/Kconfig            |  4 +--
 drivers/pinctrl/meson/Kconfig          |  1 -
 drivers/pinctrl/starfive/Kconfig       |  2 --
 drivers/pinctrl/sunplus/Kconfig        |  1 -
 drivers/power/reset/Kconfig            |  8 ++---
 drivers/regulator/Kconfig              |  2 --
 drivers/staging/media/max96712/Kconfig |  1 -
 drivers/watchdog/Kconfig               |  2 +-
 18 files changed, 31 insertions(+), 73 deletions(-)
---
base-commit: c025f6cf4209e1542ec2afebe49f42bbaf1a5c7b
change-id: 20260304-gpio-of-kconfig-e257ea7c9a09

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>


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

* [PATCH 01/14] arm64: Kconfig: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 02/14] arc: axs10x: " Bartosz Golaszewski
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 arch/arm64/Kconfig.platforms | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 54eb1d7fd419b4249a6860357da8b3dce2e2146d..9441ea827524df368f5aa1304b0122bebac3d245 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -245,7 +245,6 @@ config ARCH_MVEBU
 	select MVEBU_ODMI
 	select MVEBU_PIC
 	select MVEBU_SEI
-	select OF_GPIO
 	select PINCTRL
 	select PINCTRL_ARMADA_37XX
 	select PINCTRL_ARMADA_AP806

-- 
2.47.3


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

* [PATCH 02/14] arc: axs10x: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 01/14] arm64: Kconfig: drop unneeded dependency " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04 17:35   ` Vineet Gupta
  2026-03-04  9:02 ` [PATCH 03/14] powerpc: " Bartosz Golaszewski
                   ` (12 subsequent siblings)
  14 siblings, 1 reply; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is automatically enabled on all OF systems. There's no need to
select it explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 arch/arc/plat-axs10x/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arc/plat-axs10x/Kconfig b/arch/arc/plat-axs10x/Kconfig
index b9652c69d1b90e506f82b3b8c5be373c51246671..40f2a74d404ad9759ab9d6764c2496159eea045a 100644
--- a/arch/arc/plat-axs10x/Kconfig
+++ b/arch/arc/plat-axs10x/Kconfig
@@ -7,7 +7,6 @@ menuconfig ARC_PLAT_AXS10X
 	bool "Synopsys ARC AXS10x Software Development Platforms"
 	select DW_APB_ICTL
 	select GPIO_DWAPB
-	select OF_GPIO
 	select HAVE_PCI
 	select GENERIC_IRQ_CHIP
 	select GPIOLIB

-- 
2.47.3


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

* [PATCH 03/14] powerpc: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 01/14] arm64: Kconfig: drop unneeded dependency " Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 02/14] arc: axs10x: " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04  9:18   ` Christophe Leroy (CS GROUP)
  2026-03-04  9:02 ` [PATCH 04/14] net: mdio: " Bartosz Golaszewski
                   ` (11 subsequent siblings)
  14 siblings, 1 reply; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is automatically enabled on all OF systems. There's no need to
select it explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 arch/powerpc/platforms/85xx/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
index 604c1b4b6d45c11dc3149ee8b9adabe593882c8e..6805c19ac8a915dae1bd24b13010a56cf1948ad4 100644
--- a/arch/powerpc/platforms/85xx/Kconfig
+++ b/arch/powerpc/platforms/85xx/Kconfig
@@ -217,7 +217,6 @@ config GE_IMP3A
 config SGY_CTS1000
 	tristate "Servergy CTS-1000 support"
 	select GPIOLIB
-	select OF_GPIO
 	depends on CORENET_GENERIC
 	help
 	  Enable this to support functionality in Servergy's CTS-1000 systems.

-- 
2.47.3


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

* [PATCH 04/14] net: mdio: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (2 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 03/14] powerpc: " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 05/14] regulator: drop unneeded dependencies " Bartosz Golaszewski
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/net/mdio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mdio/Kconfig b/drivers/net/mdio/Kconfig
index 44380378911b7d72e7289951fca90282d731913d..d7ca7fce7a3b86a435fac035534260146f114bc7 100644
--- a/drivers/net/mdio/Kconfig
+++ b/drivers/net/mdio/Kconfig
@@ -247,7 +247,7 @@ config MDIO_BUS_MUX_BCM_IPROC
 
 config MDIO_BUS_MUX_GPIO
 	tristate "GPIO controlled MDIO bus multiplexers"
-	depends on OF_GPIO && OF_MDIO
+	depends on OF_MDIO
 	select MDIO_BUS_MUX
 	help
 	  This module provides a driver for MDIO bus multiplexers that

-- 
2.47.3


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

* [PATCH 05/14] regulator: drop unneeded dependencies on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (3 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 04/14] net: mdio: " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04 11:23   ` Mark Brown
  2026-03-04  9:02 ` [PATCH 06/14] gpio: drop unneeded Kconfig " Bartosz Golaszewski
                   ` (9 subsequent siblings)
  14 siblings, 1 reply; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/regulator/Kconfig | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index d10b6f9243d51574a9ac662b93d4678cd7d94a4f..10e64e3ffb1f5f60e0b62b16ab513f002a42fa1f 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -1232,7 +1232,6 @@ config REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY
 	depends on ARM || ARM64 || COMPILE_TEST
 	depends on BACKLIGHT_CLASS_DEVICE
 	depends on I2C
-	depends on OF_GPIO
 	select REGMAP_I2C
 	help
 	  This driver supports ATTINY regulator on the Raspberry Pi 7-inch
@@ -1332,7 +1331,6 @@ config REGULATOR_RT5133
 	depends on I2C && GPIOLIB && OF
 	select REGMAP
 	select CRC8
-	select OF_GPIO
 	help
 	  This driver adds support for RT5133 PMIC regulators.
 	  RT5133 is an integrated chip. It includes 8 LDOs and 3 GPOs that

-- 
2.47.3


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

* [PATCH 06/14] gpio: drop unneeded Kconfig dependencies on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (4 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 05/14] regulator: drop unneeded dependencies " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 07/14] pinctrl: Kconfig: drop unneeded " Bartosz Golaszewski
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly. Remove all Kconfig dependencies/selects for GPIO drivers.
For those that have no other dependencies: convert it to requiring
CONFIG_OF instead to avoid new symbols popping up in make config.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/gpio/Kconfig | 53 +++++++++++++++++-----------------------------------
 1 file changed, 17 insertions(+), 36 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index b45fb799e36c19794e56bbac7539250c09beaeb7..e649384f436e7fdd6ac633d9caad94bbee724439 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -145,7 +145,7 @@ menu "Memory mapped GPIO drivers"
 
 config GPIO_74XX_MMIO
 	tristate "GPIO driver for 74xx-ICs with MMIO access"
-	depends on OF_GPIO
+	depends on OF
 	select GPIO_GENERIC
 	help
 	  Say yes here to support GPIO functionality for 74xx-compatible ICs
@@ -175,14 +175,14 @@ config GPIO_AMDPT
 
 config GPIO_ASPEED
 	tristate "Aspeed GPIO support"
-	depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO
+	depends on ARCH_ASPEED || COMPILE_TEST
 	select GPIOLIB_IRQCHIP
 	help
 	  Say Y here to support Aspeed AST2400 and AST2500 GPIO controllers.
 
 config GPIO_ASPEED_SGPIO
 	bool "Aspeed SGPIO support"
-	depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO
+	depends on ARCH_ASPEED || COMPILE_TEST
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help
@@ -201,7 +201,6 @@ config GPIO_ATH79
 config GPIO_RASPBERRYPI_EXP
 	tristate "Raspberry Pi 3 GPIO Expander"
 	default RASPBERRYPI_FIRMWARE
-	depends on OF_GPIO
 	# Make sure not 'y' when RASPBERRYPI_FIRMWARE is 'm'. This can only
 	# happen when COMPILE_TEST=y, hence the added !RASPBERRYPI_FIRMWARE.
 	depends on (ARCH_BCM2835 && RASPBERRYPI_FIRMWARE) || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
@@ -218,7 +217,7 @@ config GPIO_BCM_KONA
 
 config GPIO_BCM_XGS_IPROC
 	tristate "BRCM XGS iProc GPIO support"
-	depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST)
+	depends on ARCH_BCM_IPROC || COMPILE_TEST
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	default ARCH_BCM_IPROC
@@ -229,7 +228,6 @@ config GPIO_BLZP1600
 	tristate "Blaize BLZP1600 GPIO support"
 	default y if ARCH_BLAIZE
 	depends on ARCH_BLAIZE || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help
@@ -240,7 +238,7 @@ config GPIO_BLZP1600
 config GPIO_BRCMSTB
 	tristate "BRCMSTB GPIO support"
 	default y if (ARCH_BRCMSTB || BMIPS_GENERIC)
-	depends on OF_GPIO && (ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST)
+	depends on ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST
 	select GPIO_GENERIC
 	select IRQ_DOMAIN
 	help
@@ -248,7 +246,7 @@ config GPIO_BRCMSTB
 
 config GPIO_CADENCE
 	tristate "Cadence GPIO support"
-	depends on OF_GPIO
+	depends on OF
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help
@@ -280,14 +278,13 @@ config GPIO_DWAPB
 config GPIO_EIC_SPRD
 	tristate "Spreadtrum EIC support"
 	depends on ARCH_SPRD || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
 	help
 	  Say yes here to support Spreadtrum EIC device.
 
 config GPIO_EM
 	tristate "Emma Mobile GPIO"
-	depends on (ARCH_EMEV2 || COMPILE_TEST) && OF_GPIO
+	depends on ARCH_EMEV2 || COMPILE_TEST
 	help
 	  Say yes here to support GPIO on Renesas Emma Mobile SoCs.
 
@@ -329,7 +326,7 @@ config GPIO_GE_FPGA
 
 config GPIO_FTGPIO010
 	bool "Faraday FTGPIO010 GPIO"
-	depends on OF_GPIO
+	depends on OF
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	default (ARCH_GEMINI || ARCH_MOXART)
@@ -383,7 +380,7 @@ config GPIO_HISI
 
 config GPIO_HLWD
 	tristate "Nintendo Wii (Hollywood) GPIO"
-	depends on OF_GPIO
+	depends on OF
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help
@@ -434,7 +431,6 @@ config GPIO_LOONGSON
 config GPIO_LOONGSON_64BIT
 	tristate "Loongson 64 bit GPIO support"
 	depends on LOONGARCH || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help
@@ -447,7 +443,7 @@ config GPIO_LOONGSON_64BIT
 config GPIO_LPC18XX
 	tristate "NXP LPC18XX/43XX GPIO support"
 	default y if ARCH_LPC18XX
-	depends on OF_GPIO && (ARCH_LPC18XX || COMPILE_TEST)
+	depends on ARCH_LPC18XX || COMPILE_TEST
 	select IRQ_DOMAIN_HIERARCHY
 	select GPIOLIB_IRQCHIP
 	help
@@ -456,7 +452,7 @@ config GPIO_LPC18XX
 
 config GPIO_LPC32XX
 	tristate "NXP LPC32XX GPIO support"
-	depends on OF_GPIO && (ARCH_LPC32XX || COMPILE_TEST)
+	depends on ARCH_LPC32XX || COMPILE_TEST
 	help
 	  Select this option to enable GPIO driver for
 	  NXP LPC32XX devices.
@@ -499,7 +495,6 @@ config GPIO_MPC8XXX
 config GPIO_MT7621
 	bool "Mediatek MT7621 GPIO Support"
 	depends on SOC_MT7620 || SOC_MT7621 || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help
@@ -592,7 +587,6 @@ config GPIO_RCAR
 config GPIO_RDA
 	bool "RDA Micro GPIO controller support"
 	depends on ARCH_RDA || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help
@@ -642,7 +636,6 @@ config GPIO_RTD
 config GPIO_SAMA5D2_PIOBU
 	tristate "SAMA5D2 PIOBU GPIO support"
 	depends on MFD_SYSCON
-	depends on OF_GPIO
 	depends on ARCH_AT91 || COMPILE_TEST
 	select GPIO_SYSCON
 	help
@@ -654,7 +647,7 @@ config GPIO_SAMA5D2_PIOBU
 
 config GPIO_SIFIVE
 	tristate "SiFive GPIO support"
-	depends on OF_GPIO
+	depends on OF
 	select IRQ_DOMAIN_HIERARCHY
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
@@ -673,7 +666,6 @@ config GPIO_SIOX
 config GPIO_SNPS_CREG
 	bool "Synopsys GPIO via CREG (Control REGisters) driver"
 	depends on ARC || COMPILE_TEST
-	depends on OF_GPIO
 	help
 	  This driver supports GPIOs via CREG on various Synopsys SoCs.
 	  This is a single-register MMIO GPIO driver for complex cases
@@ -683,7 +675,6 @@ config GPIO_SNPS_CREG
 config GPIO_SPACEMIT_K1
 	tristate "SPACEMIT K1 GPIO support"
 	depends on ARCH_SPACEMIT || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help
@@ -699,7 +690,6 @@ config GPIO_SPEAR_SPICS
 config GPIO_SPRD
 	tristate "Spreadtrum GPIO support"
 	depends on ARCH_SPRD || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
 	help
 	  Say yes here to support Spreadtrum GPIO device.
@@ -707,7 +697,6 @@ config GPIO_SPRD
 config GPIO_STP_XWAY
 	bool "XWAY STP GPIOs"
 	depends on SOC_XWAY || COMPILE_TEST
-	depends on OF_GPIO
 	help
 	  This enables support for the Serial To Parallel (STP) unit found on
 	  XWAY SoC. The STP allows the SoC to drive a shift registers cascade,
@@ -742,7 +731,6 @@ config GPIO_TEGRA
 	tristate "NVIDIA Tegra GPIO support"
 	default ARCH_TEGRA
 	depends on ARCH_TEGRA || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
 	select IRQ_DOMAIN_HIERARCHY
 	help
@@ -752,7 +740,6 @@ config GPIO_TEGRA186
 	tristate "NVIDIA Tegra186 GPIO support"
 	default ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC
 	depends on ARCH_TEGRA_186_SOC || ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
 	select IRQ_DOMAIN_HIERARCHY
 	help
@@ -760,7 +747,6 @@ config GPIO_TEGRA186
 
 config GPIO_TS4800
 	tristate "TS-4800 DIO blocks and compatibles"
-	depends on OF_GPIO
 	depends on SOC_IMX51 || COMPILE_TEST
 	select GPIO_GENERIC
 	help
@@ -780,7 +766,6 @@ config GPIO_THUNDERX
 config GPIO_UNIPHIER
 	tristate "UniPhier GPIO support"
 	depends on ARCH_UNIPHIER || COMPILE_TEST
-	depends on OF_GPIO
 	select IRQ_DOMAIN_HIERARCHY
 	help
 	  Say yes here to support UniPhier GPIOs.
@@ -797,7 +782,6 @@ config GPIO_VF610
 config GPIO_VISCONTI
 	tristate "Toshiba Visconti GPIO support"
 	depends on ARCH_VISCONTI || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
 	select GPIO_GENERIC
 	select IRQ_DOMAIN_HIERARCHY
@@ -806,14 +790,14 @@ config GPIO_VISCONTI
 
 config GPIO_WCD934X
 	tristate "Qualcomm Technologies Inc WCD9340/WCD9341 GPIO controller driver"
-	depends on MFD_WCD934X && OF_GPIO
+	depends on MFD_WCD934X
 	help
          This driver is to support GPIO block found on the Qualcomm Technologies
 	 Inc WCD9340/WCD9341 Audio Codec.
 
 config GPIO_XGENE
 	bool "APM X-Gene GPIO controller support"
-	depends on ARM64 && OF_GPIO
+	depends on ARM64
 	help
 	  This driver is to support the GPIO block within the APM X-Gene SoC
 	  platform's generic flash controller. The GPIO pins are muxed with
@@ -1111,7 +1095,7 @@ menu "I2C GPIO expanders"
 
 config GPIO_ADNP
 	tristate "Avionic Design N-bit GPIO expander"
-	depends on OF_GPIO
+	depends on OF
 	select GPIOLIB_IRQCHIP
 	help
 	  This option enables support for N GPIOs found on Avionic Design
@@ -1144,7 +1128,7 @@ config GPIO_DS4520
 
 config GPIO_GW_PLD
 	tristate "Gateworks PLD GPIO Expander"
-	depends on OF_GPIO
+	depends on OF
 	help
 	  Say yes here to provide access to the Gateworks I2C PLD GPIO
 	  Expander. This is used at least on the Cambria GW2358-4.
@@ -1567,7 +1551,6 @@ config GPIO_PALMAS
 config GPIO_PMIC_EIC_SPRD
 	tristate "Spreadtrum PMIC EIC support"
 	depends on MFD_SC27XX_PMIC || COMPILE_TEST
-	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
 	help
 	  Say yes here to support Spreadtrum PMIC EIC device.
@@ -1606,7 +1589,6 @@ config GPIO_SL28CPLD
 config GPIO_STMPE
 	tristate "STMPE GPIOs"
 	depends on MFD_STMPE
-	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
 	help
 	  This enables support for the GPIOs found on the STMPE I/O
@@ -1615,7 +1597,6 @@ config GPIO_STMPE
 config GPIO_TC3589X
 	bool "TC3589X GPIOs"
 	depends on MFD_TC3589X
-	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
 	help
 	  This enables support for the GPIOs found on the TC3589X
@@ -2005,7 +1986,7 @@ config GPIO_LATCH
 
 config GPIO_LINE_MUX
 	tristate "GPIO line mux driver"
-	depends on OF_GPIO
+	depends on OF
 	select MULTIPLEXER
 	help
 	  Say Y here to support the GPIO line mux, which can provide virtual

-- 
2.47.3


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

* [PATCH 07/14] pinctrl: Kconfig: drop unneeded dependencies on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (5 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 06/14] gpio: drop unneeded Kconfig " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-10  9:11   ` Linus Walleij
  2026-03-04  9:02 ` [PATCH 08/14] leds: Kconfig: drop unneeded dependency " Bartosz Golaszewski
                   ` (7 subsequent siblings)
  14 siblings, 1 reply; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/pinctrl/Kconfig          | 9 ---------
 drivers/pinctrl/bcm/Kconfig      | 4 ++--
 drivers/pinctrl/meson/Kconfig    | 1 -
 drivers/pinctrl/starfive/Kconfig | 2 --
 drivers/pinctrl/sunplus/Kconfig  | 1 -
 5 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index 4bafe1dff1951c470fe5a4131d0c06b497a4b575..03f2e3ee065f4268dbd2f94a0ffecbbc4d89df20 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -77,7 +77,6 @@ config PINCTRL_APPLE_GPIO
 	select GPIOLIB_IRQCHIP
 	select GENERIC_PINCTRL_GROUPS
 	select GENERIC_PINMUX_FUNCTIONS
-	select OF_GPIO
 	help
 	  This is the driver for the GPIO controller found on Apple ARM SoCs,
 	  including M1.
@@ -126,7 +125,6 @@ config PINCTRL_AT91PIO4
 	select GENERIC_PINCONF
 	select GPIOLIB
 	select GPIOLIB_IRQCHIP
-	select OF_GPIO
 	help
 	  Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
 	  controller available on sama5d2 SoC.
@@ -293,7 +291,6 @@ config PINCTRL_K210
 	select GENERIC_PINMUX_FUNCTIONS
 	select GENERIC_PINCONF
 	select GPIOLIB
-	select OF_GPIO
 	select REGMAP_MMIO
 	default SOC_CANAAN_K210
 	help
@@ -419,7 +416,6 @@ config PINCTRL_MICROCHIP_SGPIO
 	select GENERIC_PINCONF
 	select GENERIC_PINCTRL_GROUPS
 	select GENERIC_PINMUX_FUNCTIONS
-	select OF_GPIO
 	help
 	  Support for the serial GPIO interface used on Microsemi and
 	  Microchip SoCs. By using a serial interface, the SIO
@@ -441,7 +437,6 @@ config PINCTRL_OCELOT
 	select GENERIC_PINCONF
 	select GENERIC_PINCTRL_GROUPS
 	select GENERIC_PINMUX_FUNCTIONS
-	select OF_GPIO
 	select REGMAP_MMIO
 	help
 	  Support for the internal GPIO interfaces on Microsemi Ocelot and
@@ -482,7 +477,6 @@ config PINCTRL_PIC32
 	select PINMUX
 	select GENERIC_PINCONF
 	select GPIOLIB_IRQCHIP
-	select OF_GPIO
 	help
 	  This is the pin controller and gpio driver for Microchip PIC32
 	  microcontrollers. This option is selected automatically when specific
@@ -499,7 +493,6 @@ config PINCTRL_PISTACHIO
 	select PINMUX
 	select GENERIC_PINCONF
 	select GPIOLIB_IRQCHIP
-	select OF_GPIO
 	help
 	  This support pinctrl and GPIO driver for IMG Pistachio SoC.
 
@@ -521,7 +514,6 @@ config PINCTRL_ROCKCHIP
 	select GENERIC_PINCONF
 	select GENERIC_IRQ_CHIP
 	select MFD_SYSCON
-	select OF_GPIO
 	default ARCH_ROCKCHIP
 	help
           This support pinctrl and GPIO driver for Rockchip SoCs.
@@ -557,7 +549,6 @@ config PINCTRL_ST
 config PINCTRL_STMFX
 	tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
 	depends on I2C
-	depends on OF_GPIO
 	depends on HAS_IOMEM
 	select GENERIC_PINCONF
 	select GPIOLIB_IRQCHIP
diff --git a/drivers/pinctrl/bcm/Kconfig b/drivers/pinctrl/bcm/Kconfig
index 096d0778427e274d6532ffa872c87dfc9d155727..206f3f1249cf50c662c44043e6d2d910a5687bf1 100644
--- a/drivers/pinctrl/bcm/Kconfig
+++ b/drivers/pinctrl/bcm/Kconfig
@@ -120,7 +120,7 @@ source "drivers/pinctrl/bcm/Kconfig.stb"
 
 config PINCTRL_IPROC_GPIO
 	bool "Broadcom iProc GPIO (with PINCONF) driver"
-	depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST)
+	depends on ARCH_BCM_IPROC || COMPILE_TEST
 	select GPIOLIB_IRQCHIP
 	select PINCONF
 	select GENERIC_PINCONF
@@ -185,7 +185,7 @@ config PINCTRL_NS
 
 config PINCTRL_NSP_GPIO
 	bool "Broadcom NSP GPIO (with PINCONF) driver"
-	depends on OF_GPIO && (ARCH_BCM_NSP || COMPILE_TEST)
+	depends on ARCH_BCM_NSP || COMPILE_TEST
 	select GPIOLIB_IRQCHIP
 	select PINCONF
 	select GENERIC_PINCONF
diff --git a/drivers/pinctrl/meson/Kconfig b/drivers/pinctrl/meson/Kconfig
index ce6aeec2fc791a067bbc33a0b518d8a15402f7a6..1af4fc320f42bb893ba9f42f4bb0b6d7e034e512 100644
--- a/drivers/pinctrl/meson/Kconfig
+++ b/drivers/pinctrl/meson/Kconfig
@@ -8,7 +8,6 @@ menuconfig PINCTRL_MESON
 	select PINCONF
 	select GENERIC_PINCONF
 	select GPIOLIB
-	select OF_GPIO
 	select REGMAP_MMIO
 
 if PINCTRL_MESON
diff --git a/drivers/pinctrl/starfive/Kconfig b/drivers/pinctrl/starfive/Kconfig
index 8192ac2087fc363900b0018bf9e348c030d7b7da..a9a7cb101684451e5897406c52ff955157639faf 100644
--- a/drivers/pinctrl/starfive/Kconfig
+++ b/drivers/pinctrl/starfive/Kconfig
@@ -9,7 +9,6 @@ config PINCTRL_STARFIVE_JH7100
 	select GENERIC_PINCONF
 	select GPIOLIB
 	select GPIOLIB_IRQCHIP
-	select OF_GPIO
 	default SOC_STARFIVE
 	help
 	  Say yes here to support pin control on the StarFive JH7100 SoC.
@@ -24,7 +23,6 @@ config PINCTRL_STARFIVE_JH7110
 	select GENERIC_PINCONF
 	select GPIOLIB
 	select GPIOLIB_IRQCHIP
-	select OF_GPIO
 
 config PINCTRL_STARFIVE_JH7110_SYS
 	tristate "System pinctrl and GPIO driver for the StarFive JH7110 SoC"
diff --git a/drivers/pinctrl/sunplus/Kconfig b/drivers/pinctrl/sunplus/Kconfig
index 4b5c47c193d970b2dc1e9517381936253610af28..69f82590f6d245ba42b773758c5a6955063ae606 100644
--- a/drivers/pinctrl/sunplus/Kconfig
+++ b/drivers/pinctrl/sunplus/Kconfig
@@ -13,7 +13,6 @@ config PINCTRL_SPPCTL
 	select PINCONF
 	select PINMUX
 	select GPIOLIB
-	select OF_GPIO
 	help
 	  Say Y here to support Sunplus SP7021 pinmux controller.
 	  This driver requires the pinctrl framework.

-- 
2.47.3


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

* [PATCH 08/14] leds: Kconfig: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (6 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 07/14] pinctrl: Kconfig: drop unneeded " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 09/14] hwmon: " Bartosz Golaszewski
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/leds/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 597d7a79c988b35f304e953e873af3afe2ae04b8..f4a0a3c8c8705e0f10ba26584277dbb2d5eac5b5 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -765,7 +765,6 @@ config LEDS_NETXBIG
 	tristate "LED support for Big Network series LEDs"
 	depends on LEDS_CLASS
 	depends on MACH_KIRKWOOD || COMPILE_TEST
-	depends on OF_GPIO
 	default MACH_KIRKWOOD
 	help
 	  This option enables support for LEDs found on the LaCie 2Big

-- 
2.47.3


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

* [PATCH 09/14] hwmon: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (7 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 08/14] leds: Kconfig: drop unneeded dependency " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04 21:58   ` Guenter Roeck
  2026-03-04  9:02 ` [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF Bartosz Golaszewski
                   ` (5 subsequent siblings)
  14 siblings, 1 reply; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/hwmon/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 8f7ce66ae3a258ebd439ed97441bb087dc01c76c..fb77baeeba27b9ec51142040beccc953df0a1e3e 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -775,7 +775,6 @@ config SENSORS_G762
 
 config SENSORS_GPIO_FAN
 	tristate "GPIO fan"
-	depends on OF_GPIO
 	depends on GPIOLIB || COMPILE_TEST
 	depends on THERMAL || THERMAL=n
 	help

-- 
2.47.3


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

* [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (8 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 09/14] hwmon: " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-05  0:47   ` Guenter Roeck
                     ` (2 more replies)
  2026-03-04  9:02 ` [PATCH 11/14] bus: drop unneeded dependency on OF_GPIO Bartosz Golaszewski
                   ` (4 subsequent siblings)
  14 siblings, 3 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly. We could simply remove the dependency but in order to avoid
a new symbol popping up for everyone in make config - just convert it to
requiring CONFIG_OF.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/watchdog/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index dc78729ba2a5d6e035ed3cbe5c2b631d11b76b20..ef200339a22a6f9c51a46c9c0b8466add74313e2 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -250,7 +250,7 @@ config DA9062_WATCHDOG
 
 config GPIO_WATCHDOG
 	tristate "Watchdog device controlled through GPIO-line"
-	depends on OF_GPIO
+	depends on OF
 	select WATCHDOG_CORE
 	help
 	  If you say yes here you get support for watchdog device

-- 
2.47.3


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

* [PATCH 11/14] bus: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (9 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 12/14] staging: media: max96712: " Bartosz Golaszewski
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/bus/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig
index 2a1b46f07080b3533a9787254aec2e67cbe98310..c7dca0b5fb857a263e1ee730ede6002e88c418e6 100644
--- a/drivers/bus/Kconfig
+++ b/drivers/bus/Kconfig
@@ -236,7 +236,7 @@ config TI_SYSC
 config TS_NBUS
 	tristate "Technologic Systems NBUS Driver"
 	depends on SOC_IMX28
-	depends on OF_GPIO && PWM
+	depends on PWM
 	help
 	  Driver for the Technologic Systems NBUS which is used to interface
 	  with the peripherals in the FPGA of the TS-4600 SoM.

-- 
2.47.3


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

* [PATCH 12/14] staging: media: max96712: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (10 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 11/14] bus: drop unneeded dependency on OF_GPIO Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 13/14] power: reset: drop unneeded dependencies " Bartosz Golaszewski
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/staging/media/max96712/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/media/max96712/Kconfig b/drivers/staging/media/max96712/Kconfig
index 117fadf81bd086cc3e5e95210503000d9e4d8738..93a2d583e90ddb2b797c5167a6d3373836e88126 100644
--- a/drivers/staging/media/max96712/Kconfig
+++ b/drivers/staging/media/max96712/Kconfig
@@ -2,7 +2,6 @@
 config VIDEO_MAX96712
 	tristate "Maxim MAX96712 Quad GMSL2 Deserializer support"
 	depends on I2C
-	depends on OF_GPIO
 	depends on VIDEO_DEV
 	select V4L2_FWNODE
 	select VIDEO_V4L2_SUBDEV_API

-- 
2.47.3


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

* [PATCH 13/14] power: reset: drop unneeded dependencies on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (11 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 12/14] staging: media: max96712: " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-04  9:02 ` [PATCH 14/14] media: i2c: " Bartosz Golaszewski
  2026-03-13 13:43 ` (subset) [PATCH 00/14] gpio: remove uneeded Kconfig " Bartosz Golaszewski
  14 siblings, 0 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly. For Kconfig entries that have no other dependencies: convert
it to requiring OF to avoid new symbols popping up for everyone in make
config, for others just drop it altogether.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/power/reset/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
index f6c1bcbb57deff3568d6b1b326454add3b3bbf06..8af398b4e6f7fc5f2ecd92f11d03c43cdefe1ab6 100644
--- a/drivers/power/reset/Kconfig
+++ b/drivers/power/reset/Kconfig
@@ -97,7 +97,7 @@ config POWER_RESET_GEMINI_POWEROFF
 
 config POWER_RESET_GPIO
 	bool "GPIO power-off driver"
-	depends on OF_GPIO
+	depends on OF
 	help
 	  This driver supports turning off your board via a GPIO line.
 	  If your board needs a GPIO high/low to power down, say Y and
@@ -105,7 +105,7 @@ config POWER_RESET_GPIO
 
 config POWER_RESET_GPIO_RESTART
 	bool "GPIO restart driver"
-	depends on OF_GPIO
+	depends on OF
 	help
 	  This driver supports restarting your board via a GPIO line.
 	  If your board needs a GPIO high/low to restart, say Y and
@@ -181,7 +181,7 @@ config POWER_RESET_PIIX4_POWEROFF
 
 config POWER_RESET_LTC2952
 	bool "LTC2952 PowerPath power-off driver"
-	depends on OF_GPIO
+	depends on OF
 	help
 	  This driver supports an external powerdown trigger and board power
 	  down via the LTC2952. Bindings are made in the device tree.
@@ -198,7 +198,7 @@ config POWER_RESET_MT6323
 
 config POWER_RESET_QNAP
 	bool "QNAP power-off driver"
-	depends on OF_GPIO && PLAT_ORION
+	depends on PLAT_ORION
 	help
 	  This driver supports turning off QNAP NAS devices by sending
 	  commands to the microcontroller which controls the main power.

-- 
2.47.3


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

* [PATCH 14/14] media: i2c: drop unneeded dependencies on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (12 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 13/14] power: reset: drop unneeded dependencies " Bartosz Golaszewski
@ 2026-03-04  9:02 ` Bartosz Golaszewski
  2026-03-13 13:43 ` (subset) [PATCH 00/14] gpio: remove uneeded Kconfig " Bartosz Golaszewski
  14 siblings, 0 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-04  9:02 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm, brgl,
	Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it
controls also provide stubs so there's really no reason to select it
explicitly. For Kconfig entries that have no other dependencies: convert
it to requiring OF to avoid new symbols popping up for everyone in make
config, for others just drop it altogether.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/media/i2c/Kconfig | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index 5eb1e0e0a87ab350060567f578960c0e98940d6d..40b6fa3fe38b8d64d029d385f1acd1de4480aa69 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -237,7 +237,7 @@ config VIDEO_IMX319
 
 config VIDEO_IMX334
 	tristate "Sony IMX334 sensor support"
-	depends on OF_GPIO
+	depends on OF
 	select V4L2_CCI_I2C
 	help
 	  This is a Video4Linux2 sensor driver for the Sony
@@ -248,7 +248,7 @@ config VIDEO_IMX334
 
 config VIDEO_IMX335
 	tristate "Sony IMX335 sensor support"
-	depends on OF_GPIO
+	depends on OF
 	select V4L2_CCI_I2C
 	help
 	  This is a Video4Linux2 sensor driver for the Sony
@@ -268,7 +268,7 @@ config VIDEO_IMX355
 
 config VIDEO_IMX412
 	tristate "Sony IMX412 sensor support"
-	depends on OF_GPIO
+	depends on OF
 	help
 	  This is a Video4Linux2 sensor driver for the Sony
 	  IMX412 camera.
@@ -278,7 +278,7 @@ config VIDEO_IMX412
 
 config VIDEO_IMX415
 	tristate "Sony IMX415 sensor support"
-	depends on OF_GPIO
+	depends on OF
 	select V4L2_CCI_I2C
 	help
 	  This is a Video4Linux2 sensor driver for the Sony
@@ -689,7 +689,7 @@ config VIDEO_OV8865
 
 config VIDEO_OV9282
 	tristate "OmniVision OV9282 sensor support"
-	depends on OF_GPIO
+	depends on OF
 	help
 	  This is a Video4Linux2 sensor driver for the OmniVision
 	  OV9282 camera sensor.
@@ -1244,7 +1244,6 @@ config VIDEO_BT866
 config VIDEO_ISL7998X
 	tristate "Intersil ISL7998x video decoder"
 	depends on VIDEO_DEV && I2C
-	depends on OF_GPIO
 	select MEDIA_CONTROLLER
 	select VIDEO_V4L2_SUBDEV_API
 	select V4L2_FWNODE
@@ -1282,7 +1281,6 @@ config VIDEO_MAX9286
 	tristate "Maxim MAX9286 GMSL deserializer support"
 	depends on I2C && I2C_MUX
 	depends on VIDEO_DEV
-	depends on OF_GPIO
 	select V4L2_FWNODE
 	select VIDEO_V4L2_SUBDEV_API
 	select MEDIA_CONTROLLER

-- 
2.47.3


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

* Re: [PATCH 03/14] powerpc: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 ` [PATCH 03/14] powerpc: " Bartosz Golaszewski
@ 2026-03-04  9:18   ` Christophe Leroy (CS GROUP)
  0 siblings, 0 replies; 24+ messages in thread
From: Christophe Leroy (CS GROUP) @ 2026-03-04  9:18 UTC (permalink / raw)
  To: Bartosz Golaszewski, Catalin Marinas, Will Deacon, Alexey Brodkin,
	Vineet Gupta, Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Andrew Lunn, Heiner Kallweit, Russell King,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Liam Girdwood, Mark Brown, Linus Walleij, Bartosz Golaszewski,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Dvorkin Dmitry, Wells Lu, Lee Jones, Pavel Machek, Guenter Roeck,
	Wim Van Sebroeck, Mauro Carvalho Chehab, Greg Kroah-Hartman,
	Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm



Le 04/03/2026 à 10:02, Bartosz Golaszewski a écrit :
> OF_GPIO is automatically enabled on all OF systems. There's no need to
> select it explicitly.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>

> ---
>   arch/powerpc/platforms/85xx/Kconfig | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
> index 604c1b4b6d45c11dc3149ee8b9adabe593882c8e..6805c19ac8a915dae1bd24b13010a56cf1948ad4 100644
> --- a/arch/powerpc/platforms/85xx/Kconfig
> +++ b/arch/powerpc/platforms/85xx/Kconfig
> @@ -217,7 +217,6 @@ config GE_IMP3A
>   config SGY_CTS1000
>   	tristate "Servergy CTS-1000 support"
>   	select GPIOLIB
> -	select OF_GPIO
>   	depends on CORENET_GENERIC
>   	help
>   	  Enable this to support functionality in Servergy's CTS-1000 systems.
> 


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

* Re: [PATCH 05/14] regulator: drop unneeded dependencies on OF_GPIO
  2026-03-04  9:02 ` [PATCH 05/14] regulator: drop unneeded dependencies " Bartosz Golaszewski
@ 2026-03-04 11:23   ` Mark Brown
  0 siblings, 0 replies; 24+ messages in thread
From: Mark Brown @ 2026-03-04 11:23 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Linus Walleij,
	Bartosz Golaszewski, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, Dvorkin Dmitry, Wells Lu, Lee Jones,
	Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel,
	linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

On Wed, Mar 04, 2026 at 10:02:26AM +0100, Bartosz Golaszewski wrote:
> OF_GPIO is selected automatically on all OF systems. Any symbols it
> controls also provide stubs so there's really no reason to select it
> explicitly.

> diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
> index d10b6f9243d51574a9ac662b93d4678cd7d94a4f..10e64e3ffb1f5f60e0b62b16ab513f002a42fa1f 100644
> --- a/drivers/regulator/Kconfig
> +++ b/drivers/regulator/Kconfig
> @@ -1232,7 +1232,6 @@ config REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY
>  	depends on ARM || ARM64 || COMPILE_TEST
>  	depends on BACKLIGHT_CLASS_DEVICE
>  	depends on I2C
> -	depends on OF_GPIO
>  	select REGMAP_I2C
>  	help
>  	  This driver supports ATTINY regulator on the Raspberry Pi 7-inch

This is a depends rather than a select, though it's fairly redundant
with the arch:

Acked-by: Mark Brown <broonie@kernel.org>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH 02/14] arc: axs10x: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 ` [PATCH 02/14] arc: axs10x: " Bartosz Golaszewski
@ 2026-03-04 17:35   ` Vineet Gupta
  0 siblings, 0 replies; 24+ messages in thread
From: Vineet Gupta @ 2026-03-04 17:35 UTC (permalink / raw)
  To: Bartosz Golaszewski, Catalin Marinas, Will Deacon, Alexey Brodkin,
	Vineet Gupta, Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm



On 3/4/26 1:02 AM, Bartosz Golaszewski wrote:
> OF_GPIO is automatically enabled on all OF systems. There's no need to
> select it explicitly.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---
>  arch/arc/plat-axs10x/Kconfig | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/arch/arc/plat-axs10x/Kconfig b/arch/arc/plat-axs10x/Kconfig
> index b9652c69d1b90e506f82b3b8c5be373c51246671..40f2a74d404ad9759ab9d6764c2496159eea045a 100644
> --- a/arch/arc/plat-axs10x/Kconfig
> +++ b/arch/arc/plat-axs10x/Kconfig
> @@ -7,7 +7,6 @@ menuconfig ARC_PLAT_AXS10X
>  	bool "Synopsys ARC AXS10x Software Development Platforms"
>  	select DW_APB_ICTL
>  	select GPIO_DWAPB
> -	select OF_GPIO
>  	select HAVE_PCI
>  	select GENERIC_IRQ_CHIP
>  	select GPIOLIB

Acked-by: Vineet Gupta <vgupta@kernel.org>

Thx and apologies for the delay in getting to it.

Cheers,
-Vineet

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

* Re: [PATCH 09/14] hwmon: drop unneeded dependency on OF_GPIO
  2026-03-04  9:02 ` [PATCH 09/14] hwmon: " Bartosz Golaszewski
@ 2026-03-04 21:58   ` Guenter Roeck
  0 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2026-03-04 21:58 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Wim Van Sebroeck, Mauro Carvalho Chehab,
	Greg Kroah-Hartman, Sebastian Reichel, linux-arm-kernel,
	linux-kernel, linux-snps-arc, linuxppc-dev, netdev, linux-gpio,
	linux-amlogic, linux-leds, linux-hwmon, linux-watchdog,
	linux-media, linux-staging, linux-pm

On Wed, Mar 04, 2026 at 10:02:30AM +0100, Bartosz Golaszewski wrote:
> OF_GPIO is selected automatically on all OF systems. Any symbols it
> controls also provide stubs so there's really no reason to select it
> explicitly.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

Applied.

Thanks,
Guenter

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

* Re: [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF
  2026-03-04  9:02 ` [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF Bartosz Golaszewski
@ 2026-03-05  0:47   ` Guenter Roeck
  2026-03-06 23:28   ` Guenter Roeck
  2026-03-06 23:33   ` Guenter Roeck
  2 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2026-03-05  0:47 UTC (permalink / raw)
  To: Bartosz Golaszewski, Catalin Marinas, Will Deacon, Alexey Brodkin,
	Vineet Gupta, Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Wim Van Sebroeck, Mauro Carvalho Chehab,
	Greg Kroah-Hartman, Sebastian Reichel
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm

On 3/4/26 01:02, Bartosz Golaszewski wrote:
> OF_GPIO is selected automatically on all OF systems. Any symbols it
> controls also provide stubs so there's really no reason to select it
> explicitly. We could simply remove the dependency but in order to avoid
> a new symbol popping up for everyone in make config - just convert it to
> requiring CONFIG_OF.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

> ---
>   drivers/watchdog/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index dc78729ba2a5d6e035ed3cbe5c2b631d11b76b20..ef200339a22a6f9c51a46c9c0b8466add74313e2 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -250,7 +250,7 @@ config DA9062_WATCHDOG
>   
>   config GPIO_WATCHDOG
>   	tristate "Watchdog device controlled through GPIO-line"
> -	depends on OF_GPIO
> +	depends on OF
>   	select WATCHDOG_CORE
>   	help
>   	  If you say yes here you get support for watchdog device
> 


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

* Re: [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF
  2026-03-04  9:02 ` [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF Bartosz Golaszewski
  2026-03-05  0:47   ` Guenter Roeck
@ 2026-03-06 23:28   ` Guenter Roeck
  2026-03-06 23:33   ` Guenter Roeck
  2 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2026-03-06 23:28 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Wim Van Sebroeck, Mauro Carvalho Chehab,
	Greg Kroah-Hartman, Sebastian Reichel, linux-arm-kernel,
	linux-kernel, linux-snps-arc, linuxppc-dev, netdev, linux-gpio,
	linux-amlogic, linux-leds, linux-hwmon, linux-watchdog,
	linux-media, linux-staging, linux-pm

On Wed, Mar 04, 2026 at 10:02:31AM +0100, Bartosz Golaszewski wrote:
> OF_GPIO is selected automatically on all OF systems. Any symbols it
> controls also provide stubs so there's really no reason to select it
> explicitly. We could simply remove the dependency but in order to avoid
> a new symbol popping up for everyone in make config - just convert it to
> requiring CONFIG_OF.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
>  drivers/watchdog/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index dc78729ba2a5d6e035ed3cbe5c2b631d11b76b20..ef200339a22a6f9c51a46c9c0b8466add74313e2 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -250,7 +250,7 @@ config DA9062_WATCHDOG
>  
>  config GPIO_WATCHDOG
>  	tristate "Watchdog device controlled through GPIO-line"
> -	depends on OF_GPIO
> +	depends on OF

AI feedback:

  Could this change inadvertently allow the driver to be selected when GPIOLIB
  is disabled?

  In drivers/gpio/Kconfig, OF_GPIO is defined inside the "if GPIOLIB" block,
  so it implicitly depends on GPIOLIB. By changing the dependency directly to
  OF, the GPIOLIB dependency is lost.

  If GPIOLIB is disabled, the driver will still compile because of the stubs
  in include/linux/gpio/consumer.h, but devm_gpiod_get() will unconditionally
  return -ENOSYS, causing the probe to fail. Since the driver's sole purpose
  is to control a watchdog via a GPIO line, should it be prevented from being
  configured without GPIOLIB by using something like:

	depends on OF && GPIOLIB

It has a point. Please update.

Thanks,
Guenter

>  	select WATCHDOG_CORE
>  	help
>  	  If you say yes here you get support for watchdog device

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

* Re: [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF
  2026-03-04  9:02 ` [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF Bartosz Golaszewski
  2026-03-05  0:47   ` Guenter Roeck
  2026-03-06 23:28   ` Guenter Roeck
@ 2026-03-06 23:33   ` Guenter Roeck
  2 siblings, 0 replies; 24+ messages in thread
From: Guenter Roeck @ 2026-03-06 23:33 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Wim Van Sebroeck, Mauro Carvalho Chehab,
	Greg Kroah-Hartman, Sebastian Reichel, linux-arm-kernel,
	linux-kernel, linux-snps-arc, linuxppc-dev, netdev, linux-gpio,
	linux-amlogic, linux-leds, linux-hwmon, linux-watchdog,
	linux-media, linux-staging, linux-pm

On Wed, Mar 04, 2026 at 10:02:31AM +0100, Bartosz Golaszewski wrote:
> OF_GPIO is selected automatically on all OF systems. Any symbols it

Actually, that isn't really true.

if GPIOLIB
...
config OF_GPIO
        def_bool y
        depends on OF
        depends on HAS_IOMEM

OF_GPIO also depends on GPIOLIB and HAS_IOMEM. I don't know why it needs
to depend on HAS_IOMEM, but the GPIOLIB dependency is real.

Guenter

> controls also provide stubs so there's really no reason to select it
> explicitly. We could simply remove the dependency but in order to avoid
> a new symbol popping up for everyone in make config - just convert it to
> requiring CONFIG_OF.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
>  drivers/watchdog/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index dc78729ba2a5d6e035ed3cbe5c2b631d11b76b20..ef200339a22a6f9c51a46c9c0b8466add74313e2 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -250,7 +250,7 @@ config DA9062_WATCHDOG
>  
>  config GPIO_WATCHDOG
>  	tristate "Watchdog device controlled through GPIO-line"
> -	depends on OF_GPIO
> +	depends on OF
>  	select WATCHDOG_CORE
>  	help
>  	  If you say yes here you get support for watchdog device

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

* Re: [PATCH 07/14] pinctrl: Kconfig: drop unneeded dependencies on OF_GPIO
  2026-03-04  9:02 ` [PATCH 07/14] pinctrl: Kconfig: drop unneeded " Bartosz Golaszewski
@ 2026-03-10  9:11   ` Linus Walleij
  0 siblings, 0 replies; 24+ messages in thread
From: Linus Walleij @ 2026-03-10  9:11 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Bartosz Golaszewski, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, Dvorkin Dmitry, Wells Lu, Lee Jones,
	Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel,
	linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm

On Wed, Mar 4, 2026 at 10:03 AM Bartosz Golaszewski
<bartosz.golaszewski@oss.qualcomm.com> wrote:

> OF_GPIO is selected automatically on all OF systems. Any symbols it
> controls also provide stubs so there's really no reason to select it
> explicitly.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

Patch applied to the pinctrl tree!

Yours,
Linus Walleij

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

* Re: (subset) [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO
  2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
                   ` (13 preceding siblings ...)
  2026-03-04  9:02 ` [PATCH 14/14] media: i2c: " Bartosz Golaszewski
@ 2026-03-13 13:43 ` Bartosz Golaszewski
  14 siblings, 0 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2026-03-13 13:43 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Alexey Brodkin, Vineet Gupta,
	Scott Wood, Madhavan Srinivasan, Michael Ellerman,
	Nicholas Piggin, Christophe Leroy (CS GROUP), Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Liam Girdwood, Mark Brown,
	Linus Walleij, Bartosz Golaszewski, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Dvorkin Dmitry, Wells Lu,
	Lee Jones, Pavel Machek, Guenter Roeck, Wim Van Sebroeck,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, Sebastian Reichel,
	Bartosz Golaszewski
  Cc: linux-arm-kernel, linux-kernel, linux-snps-arc, linuxppc-dev,
	netdev, linux-gpio, linux-amlogic, linux-leds, linux-hwmon,
	linux-watchdog, linux-media, linux-staging, linux-pm


On Wed, 04 Mar 2026 10:02:21 +0100, Bartosz Golaszewski wrote:
> NOTE: Each patch in this series can be picked up independently into
> maintainer trees.
> 
> CONFIG_OF_GPIO is a switch that enables the compilation of the gpiolib-of
> module. The module itself handles GPIO lookup via the OF-node tree and
> is automatically enabled on all OF systems. It does not export any
> public symbols to drivers. There is no reason for them to select or
> depend on it in Kconfig.
> 
> [...]

I'm picking up the ones that were acked and will send a smaller series
addressing the issue pointed out by Guenter.

[02/14] arc: axs10x: drop unneeded dependency on OF_GPIO
        https://git.kernel.org/brgl/c/d2cd20f7c2a4e4bf4fca844c01e925b112c5a2c5
[03/14] powerpc: drop unneeded dependency on OF_GPIO
        https://git.kernel.org/brgl/c/dd1cdfb20e44e295512080dea508771b6a1f1c0a
[05/14] regulator: drop unneeded dependencies on OF_GPIO
        https://git.kernel.org/brgl/c/bf017304fce10933f18fafe140bf749fb9672058

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

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

end of thread, other threads:[~2026-03-13 13:44 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04  9:02 [PATCH 00/14] gpio: remove uneeded Kconfig dependencies on OF_GPIO Bartosz Golaszewski
2026-03-04  9:02 ` [PATCH 01/14] arm64: Kconfig: drop unneeded dependency " Bartosz Golaszewski
2026-03-04  9:02 ` [PATCH 02/14] arc: axs10x: " Bartosz Golaszewski
2026-03-04 17:35   ` Vineet Gupta
2026-03-04  9:02 ` [PATCH 03/14] powerpc: " Bartosz Golaszewski
2026-03-04  9:18   ` Christophe Leroy (CS GROUP)
2026-03-04  9:02 ` [PATCH 04/14] net: mdio: " Bartosz Golaszewski
2026-03-04  9:02 ` [PATCH 05/14] regulator: drop unneeded dependencies " Bartosz Golaszewski
2026-03-04 11:23   ` Mark Brown
2026-03-04  9:02 ` [PATCH 06/14] gpio: drop unneeded Kconfig " Bartosz Golaszewski
2026-03-04  9:02 ` [PATCH 07/14] pinctrl: Kconfig: drop unneeded " Bartosz Golaszewski
2026-03-10  9:11   ` Linus Walleij
2026-03-04  9:02 ` [PATCH 08/14] leds: Kconfig: drop unneeded dependency " Bartosz Golaszewski
2026-03-04  9:02 ` [PATCH 09/14] hwmon: " Bartosz Golaszewski
2026-03-04 21:58   ` Guenter Roeck
2026-03-04  9:02 ` [PATCH 10/14] watchdog: convert the Kconfig dependency on OF_GPIO to OF Bartosz Golaszewski
2026-03-05  0:47   ` Guenter Roeck
2026-03-06 23:28   ` Guenter Roeck
2026-03-06 23:33   ` Guenter Roeck
2026-03-04  9:02 ` [PATCH 11/14] bus: drop unneeded dependency on OF_GPIO Bartosz Golaszewski
2026-03-04  9:02 ` [PATCH 12/14] staging: media: max96712: " Bartosz Golaszewski
2026-03-04  9:02 ` [PATCH 13/14] power: reset: drop unneeded dependencies " Bartosz Golaszewski
2026-03-04  9:02 ` [PATCH 14/14] media: i2c: " Bartosz Golaszewski
2026-03-13 13:43 ` (subset) [PATCH 00/14] gpio: remove uneeded Kconfig " Bartosz Golaszewski

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