Skip to content

RFC pcmcia: separate 16-bit support from cardbus

Arnd Bergmann linux-arm-kernel linux-can linux-mips linux-pci linux-wireless lkml netdev oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6pccard: remove bcm63xx socket driverarch/mips/bcm63xx/Makefile arch/mips/bcm63xx/boards/board_bcm963xx.c arch/mips/bcm63xx/dev-pcmcia.c +8 more+1 -11162 replies
2/6pccard: split cardbus support from pcmciadrivers/pcmcia/Kconfig drivers/pcmcia/Makefile drivers/pcmcia/cardbus.c +6 more+60 -490 replies
3/6yenta_socket: copy pccard core code into driverdrivers/pcmcia/Makefile drivers/pcmcia/cardbus.c drivers/pcmcia/o2micro.h +5 more+3908 -24000 replies
4/6yenta_socket: remove dead codedrivers/pcmcia/yenta_socket.c+91 -8640 replies
5/6pccard: drop remnants of cardbus supportdrivers/pcmcia/Kconfig drivers/pcmcia/cistpl.c drivers/pcmcia/cs.c +3 more+11 -1190 replies
6/6pci: hotplug: move cardbus code from drivers/pcmciadrivers/Makefile drivers/pci/hotplug/Kconfig drivers/pci/hotplug/Makefile +7 more+62 -650 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/6] pcmcia: separate 16-bit support from cardbus

From: Arnd Bergmann <[email protected]>

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.

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.

My series does not touch any of the pcmcia_driver instances, but if there is consensus about splitting out the cardbus support, a lot of them can probably get removed as a follow-up.

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

Cc Bjorn Helgaas <[email protected]>
Cc Dominik Brodowski <[email protected]>
Cc Florian Fainelli <[email protected]>
Cc H Hartley Sweeten <[email protected]>
Cc Ian Abbott <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Kevin Cernekee <[email protected]>
Cc Lukas Wunner <[email protected]>
Cc Manuel Lauss <[email protected]>
Cc Oliver Hartkopp <[email protected]>
Cc Olof Johansson <[email protected]>
Cc Robert Jarzmik <[email protected]>
Cc YOKOTA Hiroshi <[email protected]>

Arnd Bergmann (6):
pccard: remove bcm63xx socket driver
pccard: split cardbus support from pcmcia
yenta_socket: copy pccard core code into driver
yenta_socket: remove dead code
pccard: drop remnants of cardbus support
pci: hotplug: move cardbus code from drivers/pcmcia

 arch/mips/bcm63xx/Makefile                    |    2 +-
 arch/mips/bcm63xx/boards/board_bcm963xx.c     |   14 -
 arch/mips/bcm63xx/dev-pcmcia.c                |  144 -
 arch/mips/configs/bcm63xx_defconfig           |    1 -
 .../asm/mach-bcm63xx/bcm63xx_dev_pcmcia.h     |   14 -
 arch/mips/pci/ops-bcm63xx.c                   |  294 --
 arch/mips/pci/pci-bcm63xx.c                   |   44 -
 drivers/Makefile                              |    2 +-
 drivers/pci/hotplug/Kconfig                   |   56 +
 drivers/pci/hotplug/Makefile                  |    1 +
 drivers/pci/hotplug/yenta_socket.c            | 4056 +++++++++++++++++
 drivers/pcmcia/Kconfig                        |   63 +-
 drivers/pcmcia/Makefile                       |   13 +-
 drivers/pcmcia/bcm63xx_pcmcia.c               |  538 ---
 drivers/pcmcia/bcm63xx_pcmcia.h               |   61 -
 drivers/pcmcia/cardbus.c                      |  124 -
 drivers/pcmcia/cistpl.c                       |   10 +-
 drivers/pcmcia/cs.c                           |  103 +-
 drivers/pcmcia/cs_internal.h                  |   10 +-
 drivers/pcmcia/ds.c                           |   14 +-
 drivers/pcmcia/i82092.c                       |    2 +-
 drivers/pcmcia/i82365.c                       |    2 +-
 drivers/pcmcia/o2micro.h                      |  183 -
 drivers/pcmcia/pd6729.c                       |    3 +-
 drivers/pcmcia/ricoh.h                        |  169 -
 drivers/pcmcia/socket_sysfs.c                 |    2 -
 drivers/pcmcia/ti113x.h                       |  978 ----
 drivers/pcmcia/topic.h                        |  168 -
 drivers/pcmcia/yenta_socket.c                 | 1455 ------
 drivers/pcmcia/yenta_socket.h                 |  136 -
 {drivers => include}/pcmcia/i82365.h          |    0
 include/pcmcia/ss.h                           |   21 -
 32 files changed, 4147 insertions(+), 4536 deletions(-)
 delete mode 100644 arch/mips/bcm63xx/dev-pcmcia.c
 delete mode 100644 arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_pcmcia.h
 create mode 100644 drivers/pci/hotplug/yenta_socket.c
 delete mode 100644 drivers/pcmcia/bcm63xx_pcmcia.c
 delete mode 100644 drivers/pcmcia/bcm63xx_pcmcia.h
 delete mode 100644 drivers/pcmcia/cardbus.c
 delete mode 100644 drivers/pcmcia/o2micro.h
 delete mode 100644 drivers/pcmcia/ti113x.h
 delete mode 100644 drivers/pcmcia/topic.h
 delete mode 100644 drivers/pcmcia/yenta_socket.c
 delete mode 100644 drivers/pcmcia/yenta_socket.h
 rename {drivers => include}/pcmcia/i82365.h (100%)
Signature · 1 line
2.39.2