Re: [RFC 0/6] pcmcia: separate 16-bit support from cardbus
From: Ondrej Zary <hidden>
Date: 2023-02-28 21:35:27
Also in:
linux-arm-kernel, linux-can, linux-mips, linux-pci, linux-wireless, lkml
On Monday 27 February 2023 14:34:51 Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de> Based on some recent discussions [1][2][3], I experimented wtih what drivers/pcmcia would look like if we completely removed 16-bit support, which was one of the options that Dominik suggested for winding down pcmcia maintenance. The remaining cardbus/yenta support is essentially a PCI hotplug driver with a slightly unusual sysfs interface, and it would still support all 32-bit cardbus hosts and cards, but no longer work with the even older 16-bit cards that require the pcmcia_driver infrastructure. I don't expect this to be a problem normal laptop support, as the last PC models that predate Cardbus support (e.g. 1997 ThinkPad 380ED) are all limited to i586MMX CPUs and 80MB of RAM. This is barely enough to boot Tiny Core Linux but not a regular distro. Support for device drivers is somewhat less clear. Losing support for 16-bit cards in cardbus sockets is obviously a limiting factor for anyone who still has those cards, but there is also a good chance that the only reason to keep the cards around is for using them in pre-cardbus machines that cannot be upgrade to 32-bit devices.
I think that most users are using CardBus controllers, either in laptops (from Pentium MMX up to Core 2, e.g. DELL Latitude E6400) or as PCI (or even PCIe) adapters for desktop machines. Users generally treat all the cards as PCMCIA and don't know that there are two kinds of them (16-bit PCMCIA and 32-bit CardBus).
Completely removing the 16-bit PCMCIA support would however break some 20+ year old embedded machines that rely on CompactFlash cards as their mass-storage device (extension), this notably includes early PocketPC models and the reference implementations for OMAP1, StrongARM1100, Alchemy and PA-Semi. All of these are still maintained, though most of the PocketPC machines got removed in the 6.3 merge window and the PA-Semi Electra board is the only one that was introduced after 2003. The approach that I take in this series is to split drivers/pcmcia into two mutually incompatible parts: the Cardbus support contains all the code that is relevant for post-1997 laptops and gets moved to drivers/pci/hotplug, while the drivers/pcmcia/ subsystem is retained for both the older laptops and the embedded systems but no longer works with the yenta socket host driver. The BCM63xx PCMCIA/Cardbus host driver appears to be unused and conflicts with this series, so it is removed in the process.
This is bad. The drivers remain but could not be used by most machines :( -- Ondrej Zary