Skip to contentSkip to conversation

drivers: pcmcia: remove obsolete host controller drivers

PATCH Applied Ethan Nelson-Moore 3 participants 3 messages Mar 9 – Mar 30

Subsystems (5)
x86 PowerPC PCI MIPS +1 more subsystems
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: pcmcia: remove obsolete host controller drivers

PCMCIA is almost completely obsolete (the last computers supporting it natively were from ~2009), and the general consensus [1] seems to be that support for it should be gradually removed from the kernel.

In 2023, an initial step of removing all the PCMCIA char drivers was taken in commit 9b12f050c76f ("char: pcmcia: remove all the drivers"), and that has not been reverted, so it seems logical to continue this process by removing more low-hanging fruit.

These host controller drivers have had no meaningful changes since their status was discussed in 2022 [2], and are unlikely to have any remaining users. Remove them and a couple references to them in comments.

The i82365 and tcic drivers are for ISA-attached host controllers, which are even less likely to be used nowadays than ones on other buses.

The i82092 driver has almost certainly not been used in over 20 years. It was broken by a null pointer dereference since the dawn of Git history (2.6.12-rc2 in 2005) until someone fixed it in 2021 in commit e39cdacf2f66 ("pcmcia: i82092: fix a null pointer dereference bug"). From their dmesg log [3], it is clear they were testing in an emulated environment and not on real hardware.

i82365.h is used by drivers other than i82365 and is therefore retained.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/

---
This patch is identical to my previous RFC patch, but rebased on the latest mainline tree.

 arch/mips/configs/mtx1_defconfig      |    1 -
 arch/powerpc/configs/ppc6xx_defconfig |    2 -
 arch/x86/kernel/resource.c            |    2 +-
 drivers/pci/quirks.c                  |    4 +-
 drivers/pcmcia/Kconfig                |   30 -
 drivers/pcmcia/Makefile               |    3 -
 drivers/pcmcia/i82092.c               |  679 -------------
 drivers/pcmcia/i82092aa.h             |   24 -
 drivers/pcmcia/i82365.c               | 1347 -------------------------
 drivers/pcmcia/tcic.c                 |  805 ---------------
 drivers/pcmcia/tcic.h                 |  266 -----
 11 files changed, 2 insertions(+), 3161 deletions(-)
 delete mode 100644 drivers/pcmcia/i82092.c
 delete mode 100644 drivers/pcmcia/i82092aa.h
 delete mode 100644 drivers/pcmcia/i82365.c
 delete mode 100644 drivers/pcmcia/tcic.c
 delete mode 100644 drivers/pcmcia/tcic.h
arch/mips/configs/mtx1_defconfig +0 -1
index 77050ae3945f..fdfc6ec3f22f 100644
@@ -15,7 +15,6 @@ CONFIG_PCI=y
 CONFIG_PCCARD=m
 CONFIG_YENTA=m
 CONFIG_PD6729=m
-CONFIG_I82092=m
 CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 CONFIG_MODVERSIONS=y
arch/powerpc/configs/ppc6xx_defconfig +0 -2
index 3c08f46f3d41..e03fb26e0e63 100644
@@ -72,8 +72,6 @@ CONFIG_PCI_MSI=y
 CONFIG_PCCARD=y
 CONFIG_YENTA=y
 CONFIG_PD6729=m
-CONFIG_I82092=m
-CONFIG_I82365=m
 CONFIG_ADVANCED_OPTIONS=y
 CONFIG_NET=y
 CONFIG_PACKET=y
arch/x86/kernel/resource.c +1 -1
index 79bc8a97a083..44d4b2c538b0 100644
@@ -62,7 +62,7 @@ void arch_remove_reservations(struct resource *avail)
 	/*
 	 * Trim out BIOS area (high 2MB) and E820 regions. We do not remove
 	 * the low 1MB unconditionally, as this area is needed for some ISA
-	 * cards requiring a memory range, e.g. the i82365 PCMCIA controller.
+	 * cards requiring a memory range.
 	 */
 	if (avail->flags & IORESOURCE_MEM) {
 		resource_clip(avail, BIOS_ROM_BASE, BIOS_ROM_END);
drivers/pci/quirks.c +1 -3
index 48946cca4be7..638e4d30998f 100644
@@ -1296,9 +1296,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA,	PCI_DEVICE_ID_VIA_82C597_0,	quirk_vt
 
 /*
  * CardBus controllers have a legacy base address that enables them to
- * respond as i82365 pcmcia controllers.  We don't want them to do this
- * even if the Linux CardBus driver is not loaded, because the Linux i82365
- * driver does not (and should not) handle CardBus.
+ * respond as i82365 PCMCIA controllers.  We don't want them to do this.
  */
 static void quirk_cardbus_legacy(struct pci_dev *dev)
 {
drivers/pcmcia/Kconfig +0 -30
index 660a95805524..d1d25aa296ad 100644
@@ -119,36 +119,6 @@ config PD6729
 	  This provides support for the Cirrus PD6729 PCI-to-PCMCIA bridge
 	  device, found in some older laptops and PCMCIA card readers.
 
-config I82092
-	tristate "i82092 compatible bridge support"
-	depends on PCMCIA && PCI && HAS_IOPORT
-	select PCCARD_NONSTATIC
-	help
-	  This provides support for the Intel I82092AA PCI-to-PCMCIA bridge device,
-	  found in some older laptops and more commonly in evaluation boards for the
-	  chip.
-
-config I82365
-	tristate "i82365 compatible bridge support"
-	depends on PCMCIA && ISA
-	select PCCARD_NONSTATIC
-	help
-	  Say Y here to include support for ISA-bus PCMCIA host bridges that
-	  are register compatible with the Intel i82365.  These are found on
-	  older laptops and ISA-bus card readers for desktop systems.  A
-	  "bridge" is the hardware inside your computer that PCMCIA cards are
-	  plugged into. If unsure, say N.
-
-config TCIC
-	tristate "Databook TCIC host bridge support"
-	depends on PCMCIA && ISA
-	select PCCARD_NONSTATIC
-	help
-	  Say Y here to include support for the Databook TCIC family of PCMCIA
-	  host bridges. These are only found on a handful of old systems.
-	  "Bridge" is the name used for the hardware inside your computer that
-	  PCMCIA cards are plugged into. If unsure, say N.
-
 config PCMCIA_ALCHEMY_DEVBOARD
 	tristate "Alchemy Db/Pb1xxx PCMCIA socket services"
 	depends on MIPS_DB1XXX && PCMCIA
drivers/pcmcia/Makefile +0 -3
index d16a0317ce43..ee2f204cbc21 100644
@@ -20,9 +20,6 @@ obj-$(CONFIG_PCCARD)				+= pcmcia_rsrc.o
 obj-$(CONFIG_YENTA) 				+= yenta_socket.o
 
 obj-$(CONFIG_PD6729)				+= pd6729.o
-obj-$(CONFIG_I82365)				+= i82365.o
-obj-$(CONFIG_I82092)				+= i82092.o
-obj-$(CONFIG_TCIC)				+= tcic.o
 obj-$(CONFIG_PCMCIA_SOC_COMMON)			+= soc_common.o
 obj-$(CONFIG_PCMCIA_SA11XX_BASE)		+= sa11xx_base.o
 obj-$(CONFIG_PCMCIA_SA1100)			+= sa1100_cs.o
drivers/pcmcia/i82092.c deleted +0 -679

679 lines not on this page · raw message

drivers/pcmcia/i82092aa.h deleted +0 -24
deleted file mode 100644
index 0f851acab7e5..000000000000
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _INCLUDE_GUARD_i82092aa_H_
-#define _INCLUDE_GUARD_i82092aa_H_
-
-#include <linux/interrupt.h>
-
-/* prototypes */
-
-static int  i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *id);
-static void i82092aa_pci_remove(struct pci_dev *dev);
-static int card_present(int socketno);
-static irqreturn_t i82092aa_interrupt(int irq, void *dev);
-
-
-
-
-static int i82092aa_get_status(struct pcmcia_socket *socket, u_int *value);
-static int i82092aa_set_socket(struct pcmcia_socket *socket, socket_state_t *state);
-static int i82092aa_set_io_map(struct pcmcia_socket *socket, struct pccard_io_map *io);
-static int i82092aa_set_mem_map(struct pcmcia_socket *socket, struct pccard_mem_map *mem);
-static int i82092aa_init(struct pcmcia_socket *socket);
-
-#endif
-
drivers/pcmcia/i82365.c deleted +0 -1347

1,347 lines not on this page · raw message

drivers/pcmcia/tcic.c deleted +0 -805

805 lines not on this page · raw message

drivers/pcmcia/tcic.h deleted +0 -266

67 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.43.0

Part of the diff is not shown here. View the raw message.

Acked-by on v1 1/1
#1 lore raw

On 3/9/26 00:41, Ethan Nelson-Moore wrote:
...

Quoted 1 line
 arch/x86/kernel/resource.c            |    2 +-

Just curious, roughly when were *these* controllers that you are removing actually being sold in new systems? Because I think you're leaving the drivers for the newer controllers in place, at least for the moment.

One nit:

Quoted 1 line

i82365.h is used by drivers other than i82365 and is therefore retained.

It might be nice to add a comment in that header about what its current role still *is*. It seems like some (newer?) PCMCIA controllers shared register ABI with the i82365.

But that's obviously super minor.

maintainer Applied
#2 lore raw
In reply to Ethan Nelson-Moore

Am Mon, Mar 09, 2026 at 12:41:48AM -0700 schrieb Ethan Nelson-Moore:

Quoted 24 lines

PCMCIA is almost completely obsolete (the last computers supporting it natively were from ~2009), and the general consensus [1] seems to be that support for it should be gradually removed from the kernel.

In 2023, an initial step of removing all the PCMCIA char drivers was taken in commit 9b12f050c76f ("char: pcmcia: remove all the drivers"), and that has not been reverted, so it seems logical to continue this process by removing more low-hanging fruit.

These host controller drivers have had no meaningful changes since their status was discussed in 2022 [2], and are unlikely to have any remaining users. Remove them and a couple references to them in comments.

The i82365 and tcic drivers are for ISA-attached host controllers, which are even less likely to be used nowadays than ones on other buses.

The i82092 driver has almost certainly not been used in over 20 years. It was broken by a null pointer dereference since the dawn of Git history (2.6.12-rc2 in 2005) until someone fixed it in 2021 in commit e39cdacf2f66 ("pcmcia: i82092: fix a null pointer dereference bug"). From their dmesg log [3], it is clear they were testing in an emulated environment and not on real hardware.

Quoted 7 lines

i82365.h is used by drivers other than i82365 and is therefore retained.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/

Applied to pcmcia-next.

Thanks,
Dominik