Thread (3 messages) flat view 3 messages, 3 authors, 4d ago

Re: [PATCH] Kconfig: purge twenty-nine legacy ghost options

From: "Arnd Bergmann" <arnd@arndb.de>
Date: 2026-09-05 09:47:35
Also in: linux-clk, linux-fbdev, linux-input, linux-media, linux-pci, linux-sound, linux-staging, linux-usb, lkml

On Sat, Sep 5, 2026, at 01:12, Breno Rodrigues Alves wrote:
You can keep a dead config option around for a while out of sympathy.
After a couple of releases it stops being "transitional" and starts
being "you are confusing every user who greps for it". These options
select nothing, gate nothing, and -- I checked by hand, this is not a
regex accident -- are referenced by exactly nobody in the tree.
Cleaning this up seems useful, but it's not nearly as trivial
as you describe it.

Some of them do 'select' other options, either for backwards
compatibility or as the intended use. I would suggest splitting
these out into separate patches and only having a combined
cleanup patch for changes that are free of side-effects.
-config PANEL
-	tristate "Parallel port LCD/Keypad Panel support (OLD OPTION)"
-	depends on PARPORT
-	select AUXDISPLAY
-	select PARPORT_PANEL
This change may break old defconfigs, but is probably a good idea
quoted hunk ↗ jump to hunk
diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig
index b059d4457..94a8a0a6f 100644
--- a/drivers/clk/mediatek/Kconfig
+++ b/drivers/clk/mediatek/Kconfig
@@ -181,12 +181,6 @@ config COMMON_CLK_MT6765_CAMSYS
        help
          This driver supports MediaTek MT6765 camsys clocks.

-config COMMON_CLK_MT6765_GCESYS
-       tristate "Clock driver for MediaTek MT6765 gcesys"
-       depends on COMMON_CLK_MT6765
-       help
-         This driver supports MediaTek MT6765 gcesys clocks.
-
...
-config COMMON_CLK_MT6765_MIPI2BSYS
-       tristate "Clock driver for MediaTek MT6765 mipi2bsys"
-       depends on COMMON_CLK_MT6765
-       help
-         This driver supports MediaTek MT6765 mipi2bsys clocks.
I think these have come up before, the change looks correct to
me, but I'd split that up for the mediatek clk maintainers
to decide.
   Topre REALFORCE R3S 87 key keyboards.
-config HID_THINGM
-	tristate "ThingM blink(1) USB RGB LED"
-	depends on LEDS_CLASS
-	select HID_LED
-	help
-	Support for the ThingM blink(1) USB RGB LED. This driver has been
-	merged into the generic hid led driver. Config symbol HID_THINGM
-	just selects HID_LED and will be removed soon.
-
 config HID_THRUSTMASTER
 	tristate "ThrustMaster devices support"
 	depends on USB_HID
There is still a comment referring to the old option, which you
should modify at the same time.
quoted hunk ↗ jump to hunk
diff --git a/drivers/interconnect/mediatek/Kconfig 
b/drivers/interconnect/mediatek/Kconfig
index 9fd3f2170..a7aebfa1a 100644
--- a/drivers/interconnect/mediatek/Kconfig
+++ b/drivers/interconnect/mediatek/Kconfig
@@ -28,9 +28,3 @@ config INTERCONNECT_MTK_MT8195
 	  This is a driver for the MediaTek bus interconnect on MT8195-based
 	  platforms.

-config INTERCONNECT_MTK_MT8196
-	tristate "MediaTek MT8196 interconnect driver"
-	depends on INTERCONNECT_MTK_DVFSRC_EMI
-	help
-	  This is a driver for the MediaTek bus interconnect on MT8196-based
-	  platforms.
Here you should look at the patch that introduced it, it
appears that there is a typo in the Makefile that you
should fix instead.
quoted hunk ↗ jump to hunk
diff --git a/drivers/media/dvb-core/Kconfig b/drivers/media/dvb-core/Kconfig
index 8b3f2d53c..c6a97add8 100644
--- a/drivers/media/dvb-core/Kconfig
+++ b/drivers/media/dvb-core/Kconfig
@@ -67,14 +67,3 @@ config DVB_DEMUX_SECTION_LOSS_LOG

 	  If you are unsure about this, say N here.

-config DVB_ULE_DEBUG
-	bool "Enable DVB net ULE packet debug messages"
-	depends on DVB_CORE
-	help
-	  Enable extra log messages meant to detect problems while
-	  handling DVB network ULE packet loss inside the Kernel.
-
-	  Should not be enabled on normal cases, as logs can
-	  be very verbose.
-
-	  If you are unsure about this, say N here.
Same here, commit ba711e1cee75 ("media: dvb-core: allow users
to enable DVB net ULE debug") introduced a typo. Please either
fix that typo or revert the whole thing.
quoted hunk ↗ jump to hunk
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index 2c7699b66..dbef2275f 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -22,12 +22,6 @@ config SDR_PLATFORM_DRIVERS
 	help
 	  Say Y here to enable support for platform-specific SDR Drivers.

-config DVB_PLATFORM_DRIVERS
-	bool "DVB platform devices"
-	depends on MEDIA_DIGITAL_TV_SUPPORT
-	help
-	  Say Y here to enable support for platform-specific Digital TV drivers.
-
 config V4L_MEM2MEM_DRIVERS
 	bool "Memory-to-memory multimedia devices"
 	depends on VIDEO_DEV
This was apparently used until 2282f7610736 ("media: c8sectpfe:
remove support of STi c8sectpfe driver").
quoted hunk ↗ jump to hunk
b/drivers/pci/controller/dwc/Kconfig
index dcfbe7e22..c43b3bde5 100644
--- a/drivers/pci/controller/dwc/Kconfig
+++ b/drivers/pci/controller/dwc/Kconfig
@@ -121,20 +121,6 @@ config PCI_IMX6_HOST
 	  on DesignWare hardware and therefore the driver re-uses the
 	  DesignWare core functions to implement the driver.

-config PCI_IMX6_EP
-	bool "Freescale i.MX6/7/8 PCIe controller (endpoint mode)"
-	depends on ARCH_MXC || COMPILE_TEST
-	depends on PCI_ENDPOINT
-	select PCIE_DW_EP
-	select PCI_HOST_COMMON
-	select PCI_IMX6
-	select PCI_PWRCTRL_GENERIC
-	help
-	  Enables support for the PCIe controller in the i.MX SoCs to
-	  work in endpoint mode. The PCI controller on i.MX is based
-	  on DesignWare hardware and therefore the driver re-uses the
-	  DesignWare core functions to implement the driver.
This looks intentional and useful, something went wrong with your
validation.
quoted hunk ↗ jump to hunk
@@ -900,16 +899,6 @@ config REGULATOR_MT6315
 	  This driver supports the control of different power rails of device
 	  through regulator interface.

-config REGULATOR_MT6316
-	tristate "MT6316 SPMI PMIC regulator driver"
-	depends on SPMI
-	select REGMAP_SPMI
-	help
-	  Say Y here to enable support for 2+2, 3+1 and 4 phase regulators
-	  found in the MediaTek MT6316 BP, CP, DP, HP, VP and TP SPMI PMICs.
-	  This driver supports the control of different power rails of device
-	  through regulator interface.
-
Another typo, this one from a87a7b353072 ("regulator: Add
support for MediaTek MT6316 SPMI PMIC Regulators")
quoted hunk ↗ jump to hunk
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 76521555e..f05eb1bb7 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -492,20 +492,6 @@ config USB_CONFIGFS_F_PRINTER
 	  For more information, see Documentation/usb/gadget_printer.rst
 	  which includes sample code for accessing the device file.

-config USB_CONFIGFS_F_TCM
-	bool "USB Gadget Target Fabric"
-	depends on TARGET_CORE
-	depends on USB_CONFIGFS
-	select USB_LIBCOMPOSITE
-	select USB_F_TCM
-	help
-	  This fabric is a USB gadget component. Two USB protocols are
-	  supported that is BBB or BOT (Bulk Only Transport) and UAS
-	  (USB Attached SCSI). BOT is advertised on alternative
-	  interface 0 (primary) and UAS is on alternative interface 1.
-	  Both protocols can work on USB2.0 and USB3.0.
-	  UAS utilizes the USB 3.0 feature called streams support.
-
How is this one different from the other USB_CONFIGFS_F_* ones?
quoted hunk ↗ jump to hunk
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 10cff12a3..06999ba3d 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -281,20 +281,6 @@ config USB_EHCI_HCD_AT91
 	  Enables support for the on-chip EHCI controller on
 	  Atmel chips.

-config USB_EHCI_TEGRA
-	tristate "NVIDIA Tegra HCD support"
-	depends on ARCH_TEGRA
-	select USB_CHIPIDEA
-	select USB_CHIPIDEA_HOST
-	select USB_CHIPIDEA_TEGRA
-	select USB_GADGET
-	help
-	  This option is deprecated now and the driver was removed, use
-	  USB_CHIPIDEA_TEGRA instead.
-
There is a recommentation to use USB_CHIPIDEA_TEGRA, but that
one depends on CONFIG_EXPERT. Changing this needs to be
done more carefully.
quoted hunk ↗ jump to hunk
index fdc954028..e52f7cb9e 100644
--- a/sound/soc/tegra/Kconfig
+++ b/sound/soc/tegra/Kconfig
@@ -192,15 +192,6 @@ config SND_SOC_TEGRA_AUDIO_GRAPH_CARD
 config SND_SOC_TEGRA_MACHINE_DRV
 	tristate

-config SND_SOC_TEGRA_RT5631
-	tristate "SoC Audio support for Tegra boards using an RT5631 codec"
-	depends on SND_SOC_TEGRA && I2C && GPIOLIB
-	select SND_SOC_TEGRA_MACHINE_DRV
-	select SND_SOC_RT5631
-	help
-	  Say Y or M here if you want to add support for SoC audio on Tegra
-	  boards using the RT5631 codec, such as Transformer.
... 
-config SND_SOC_TEGRA_CPCAP
-	tristate "SoC Audio support for Tegra boards using a CPCAP codec"
-	depends on I2C && GPIOLIB && MFD_CPCAP
-	select SND_SOC_TEGRA_MACHINE_DRV
-	select SND_SOC_CPCAP
-	help
-	  Say Y or M here if you want to add support for SoC audio on Tegra
-	  boards using the CPCAP codec, such as Motorola Atrix 4G or Droid X2.
-
These all look like intentional shorthand options for selecting
the correct set of drivers.

     Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help