Skip to contentSkip to conversation

tty: ipwireless: move Kconfig entry to tty

PATCH In review Jiri Slaby (SUSE) 5 participants 6 messages Feb 22, 2023 – Feb 23, 2023

Subsystems (9)
lore
Share & tools
lore

Jiri Slaby (SUSE)

author maintainer
#0 lore raw

PATCH v2 1/2 tty: ipwireless: move Kconfig entry to tty

The ipwireless' Kconfig entry is currently sitting in char/pcmcia. But the driver is in tty/. So move the entry to tty/ too.

First, it makes sense to have the entry along the driver. Second, whole char/pcmcia is about to pass away.

Cc Jiri Kosina <[email protected]>
Cc David Sterba <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/char/pcmcia/Kconfig | 9 ---------
 drivers/tty/Kconfig         | 9 +++++++++
 2 files changed, 9 insertions(+), 9 deletions(-)
drivers/char/pcmcia/Kconfig +0 -9
index f5d589b2be44..26724990074c 100644
@@ -55,14 +55,5 @@ config SCR24X
 
 	  If unsure say N.
 
-config IPWIRELESS
-	tristate "IPWireless 3G UMTS PCMCIA card support"
-	depends on PCMCIA && NETDEVICES && TTY
-	select PPP
-	help
-	  This is a driver for 3G UMTS PCMCIA card from IPWireless company. In
-	  some countries (for example Czech Republic, T-Mobile ISP) this card
-	  is shipped for service called UMTS 4G.
-
 endmenu
 
drivers/tty/Kconfig +9 -0
index d35fc068da74..4de4fb9ce61a 100644
@@ -301,6 +301,15 @@ config GOLDFISH_TTY_EARLY_CONSOLE
 	default y if GOLDFISH_TTY=y
 	select SERIAL_EARLYCON
 
+config IPWIRELESS
+	tristate "IPWireless 3G UMTS PCMCIA card support"
+	depends on PCMCIA && NETDEVICES
+	select PPP
+	help
+	  This is a driver for 3G UMTS PCMCIA card from IPWireless company. In
+	  some countries (for example Czech Republic, T-Mobile ISP) this card
+	  is shipped for service called UMTS 4G.
+
 config N_GSM
 	tristate "GSM MUX line discipline support (EXPERIMENTAL)"
 	depends on NET
Signature · 1 line
2.39.2
author maintainer
#1 lore raw

PATCH v2 2/2 char: pcmcia: remove all the drivers

These char PCMCIA drivers are buggy[1] and receive only minimal care. It was concluded[2], that we should try to remove most pcmcia drivers completely. Let's start with these char broken one.

Note that I also removed a UAPI header: include/uapi/linux/cm4000_cs.h. I found only coccinelle tests mentioning some ioctl constants from that file. But they are not actually used. Anyway, should someone complain, we may reintroduce the header (or its parts).

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

Cc "Hyunwoo Kim" <[email protected]>
Cc Harald Welte <[email protected]>
Cc Lubomir Rintel <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

---

Notes:
[v2]
* remove inclusion of pcmcia/Kconfig in drivers/char/
* include uapi header removal
* rebase

 Documentation/process/magic-number.rst        |    1 -
 .../it_IT/process/magic-number.rst            |    1 -
 .../sp_SP/process/magic-number.rst            |    1 -
 .../zh_CN/process/magic-number.rst            |    1 -
 .../zh_TW/process/magic-number.rst            |    1 -
 .../userspace-api/ioctl/ioctl-number.rst      |    1 -
 MAINTAINERS                                   |   17 -
 arch/powerpc/configs/ppc6xx_defconfig         |    2 -
 drivers/char/Kconfig                          |    2 -
 drivers/char/Makefile                         |    1 -
 drivers/char/pcmcia/Kconfig                   |   59 -
 drivers/char/pcmcia/Makefile                  |   11 -
 drivers/char/pcmcia/cm4000_cs.c               | 1912 --------
 drivers/char/pcmcia/cm4040_cs.c               |  684 ---
 drivers/char/pcmcia/cm4040_cs.h               |   48 -
 drivers/char/pcmcia/scr24x_cs.c               |  359 --
 drivers/char/pcmcia/synclink_cs.c             | 4290 -----------------
 include/linux/cm4000_cs.h                     |   11 -
 include/uapi/linux/cm4000_cs.h                |   64 -
 19 files changed, 7466 deletions(-)
 delete mode 100644 drivers/char/pcmcia/Kconfig
 delete mode 100644 drivers/char/pcmcia/Makefile
 delete mode 100644 drivers/char/pcmcia/cm4000_cs.c
 delete mode 100644 drivers/char/pcmcia/cm4040_cs.c
 delete mode 100644 drivers/char/pcmcia/cm4040_cs.h
 delete mode 100644 drivers/char/pcmcia/scr24x_cs.c
 delete mode 100644 drivers/char/pcmcia/synclink_cs.c
 delete mode 100644 include/linux/cm4000_cs.h
 delete mode 100644 include/uapi/linux/cm4000_cs.h
Documentation/process/magic-number.rst +0 -1
index 64b5948fc1d4..7029c3c084ee 100644
@@ -72,7 +72,6 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-MGSLPC_MAGIC          0x5402           mgslpc_info              ``drivers/char/pcmcia/synclink_cs.c``
 BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
 HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
Documentation/translations/it_IT/process/magic-number.rst +0 -1
index 02eb7eb2448e..ae92ab633c16 100644
@@ -78,7 +78,6 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-MGSLPC_MAGIC          0x5402           mgslpc_info              ``drivers/char/pcmcia/synclink_cs.c``
 BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
 HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
Documentation/translations/sp_SP/process/magic-number.rst +0 -1
index 2b62cec34e8e..7c7dfb4ba80b 100644
@@ -77,7 +77,6 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-MGSLPC_MAGIC          0x5402           mgslpc_info              ``drivers/char/pcmcia/synclink_cs.c``
 BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
 HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
Documentation/translations/zh_CN/process/magic-number.rst +0 -1
index 0617ce125e12..37ed33034134 100644
@@ -61,7 +61,6 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-MGSLPC_MAGIC          0x5402           mgslpc_info              ``drivers/char/pcmcia/synclink_cs.c``
 BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
 HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
Documentation/translations/zh_TW/process/magic-number.rst +0 -1
index f3f7082e17c6..1d48e1bbf5f2 100644
@@ -64,7 +64,6 @@ PG_MAGIC              'P'              pg_{read,write}_hdr      ``include/linux/
 APM_BIOS_MAGIC        0x4101           apm_user                 ``arch/x86/kernel/apm_32.c``
 FASYNC_MAGIC          0x4601           fasync_struct            ``include/linux/fs.h``
 SLIP_MAGIC            0x5302           slip                     ``drivers/net/slip.h``
-MGSLPC_MAGIC          0x5402           mgslpc_info              ``drivers/char/pcmcia/synclink_cs.c``
 BAYCOM_MAGIC          0x19730510       baycom_state             ``drivers/net/baycom_epp.c``
 HDLCDRV_MAGIC         0x5ac6e778       hdlcdrv_state            ``include/linux/hdlcdrv.h``
 KV_MAGIC              0x5f4b565f       kernel_vars_s            ``arch/mips/include/asm/sn/klkernvars.h``
Documentation/userspace-api/ioctl/ioctl-number.rst +0 -1
index 0a1882e296ae..176e8fc3f31b 100644
@@ -222,7 +222,6 @@ Code  Seq#    Include File                                           Comments
 'b'   00-FF                                                          conflict! bit3 vme host bridge
                                                                      <mailto:[email protected]>
 'b'   00-0F  linux/dma-buf.h                                         conflict!
-'c'   all    linux/cm4000_cs.h                                       conflict!
 'c'   00-7F  linux/comstats.h                                        conflict!
 'c'   00-7F  linux/coda.h                                            conflict!
 'c'   00-1F  linux/chio.h                                            conflict!
MAINTAINERS +0 -17
index b0db911207ba..4d06773de3a8 100644
@@ -15328,18 +15328,6 @@ S:	Maintained
 F:	Documentation/filesystems/omfs.rst
 F:	fs/omfs/
 
-OMNIKEY CARDMAN 4000 DRIVER
-M:	Harald Welte <[email protected]>
-S:	Maintained
-F:	drivers/char/pcmcia/cm4000_cs.c
-F:	include/linux/cm4000_cs.h
-F:	include/uapi/linux/cm4000_cs.h
-
-OMNIKEY CARDMAN 4040 DRIVER
-M:	Harald Welte <[email protected]>
-S:	Maintained
-F:	drivers/char/pcmcia/cm4040_cs.*
-
 OMNIVISION OG01A1B SENSOR DRIVER
 M:	Shawn Tu <[email protected]>
 L:	[email protected]
@@ -18615,11 +18603,6 @@ F:	include/linux/wait.h
 F:	include/uapi/linux/sched.h
 F:	kernel/sched/
 
-SCR24X CHIP CARD INTERFACE DRIVER
-M:	Lubomir Rintel <[email protected]>
-S:	Supported
-F:	drivers/char/pcmcia/scr24x_cs.c
-
 SCSI RDMA PROTOCOL (SRP) INITIATOR
 M:	Bart Van Assche <[email protected]>
 L:	[email protected]
arch/powerpc/configs/ppc6xx_defconfig +0 -2
index 110258277959..d8729b94400e 100644
@@ -614,8 +614,6 @@ CONFIG_HW_RANDOM=y
 CONFIG_HW_RANDOM_VIRTIO=m
 CONFIG_NVRAM=y
 CONFIG_DTLK=m
-CONFIG_CARDMAN_4000=m
-CONFIG_CARDMAN_4040=m
 CONFIG_IPWIRELESS=m
 CONFIG_I2C_CHARDEV=m
 CONFIG_I2C_HYDRA=m
drivers/char/Kconfig +0 -2
index 30fe9848dac1..801d6c83f896 100644
@@ -247,8 +247,6 @@ config SONYPI
 	  To compile this driver as a module, choose M here: the
 	  module will be called sonypi.
 
-source "drivers/char/pcmcia/Kconfig"
-
 config MWAVE
 	tristate "ACP Modem (Mwave) support"
 	depends on X86 && TTY
drivers/char/Makefile +0 -1
index 1b35d1724565..c5f532e412f1 100644
@@ -35,7 +35,6 @@ obj-$(CONFIG_TELCLOCK)		+= tlclk.o
 
 obj-$(CONFIG_MWAVE)		+= mwave/
 obj-y				+= agp/
-obj-$(CONFIG_PCMCIA)		+= pcmcia/
 
 obj-$(CONFIG_HANGCHECK_TIMER)	+= hangcheck-timer.o
 obj-$(CONFIG_TCG_TPM)		+= tpm/
drivers/char/pcmcia/Kconfig deleted +0 -59

59 lines not on this page · raw message

drivers/char/pcmcia/Makefile deleted +0 -11
deleted file mode 100644
index 024eed1c4ca5..000000000000
@@ -1,11 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# drivers/char/pcmcia/Makefile
-#
-# Makefile for the Linux PCMCIA char device drivers.
-#
-
-obj-$(CONFIG_SYNCLINK_CS) += synclink_cs.o
-obj-$(CONFIG_CARDMAN_4000) += cm4000_cs.o
-obj-$(CONFIG_CARDMAN_4040) += cm4040_cs.o
-obj-$(CONFIG_SCR24X) += scr24x_cs.o
drivers/char/pcmcia/cm4000_cs.c deleted +0 -1912

1,912 lines not on this page · raw message

drivers/char/pcmcia/cm4040_cs.c deleted +0 -684

684 lines not on this page · raw message

drivers/char/pcmcia/cm4040_cs.h deleted +0 -48

48 lines not on this page · raw message

drivers/char/pcmcia/scr24x_cs.c deleted +0 -359

192 lines not on this page · raw message

drivers/char/pcmcia/synclink_cs.c deleted +0 -4290

4,290 lines not on this page · raw message

include/linux/cm4000_cs.h deleted +0 -11
deleted file mode 100644
index ea4958e07a14..000000000000

Lines of this file are not shown. View the raw message.

include/uapi/linux/cm4000_cs.h deleted +0 -64

64 lines not on this page · raw message

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

Signature · 1 line
2.39.2

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

maintainer
#2 lore raw

Re: [PATCH v2 2/2] char: pcmcia: remove all the drivers

Quoted 12 lines · Jiri Slaby (SUSE)

These char PCMCIA drivers are buggy[1] and receive only minimal care. It was concluded[2], that we should try to remove most pcmcia drivers completely. Let's start with these char broken one.

Note that I also removed a UAPI header: include/uapi/linux/cm4000_cs.h. I found only coccinelle tests mentioning some ioctl constants from that file. But they are not actually used. Anyway, should someone complain, we may reintroduce the header (or its parts).

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

Quoted 7 lines
Cc "Hyunwoo Kim" <[email protected]>
Cc Harald Welte <[email protected]>
Cc Lubomir Rintel <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

---

Nice! I'll queue this up in my tree after 6.3-rc1 is out if no one objects by then.

thanks,

greg k-h

Acked-by on v2 1/2
#5 lore raw
In reply to Jiri Slaby (SUSE)
Quoted 9 lines · Jiri Slaby (SUSE)

The ipwireless' Kconfig entry is currently sitting in char/pcmcia. But the driver is in tty/. So move the entry to tty/ too.

First, it makes sense to have the entry along the driver. Second, whole char/pcmcia is about to pass away.

Acked-by on v2 2/2
#3 lore raw

Re: [PATCH v2 2/2] char: pcmcia: remove all the drivers

In reply to Jiri Slaby (SUSE)

Am Wed, Feb 22, 2023 at 10:23:02AM +0100 schrieb Jiri Slaby (SUSE):

Quoted 9 lines

These char PCMCIA drivers are buggy[1] and receive only minimal care. It was concluded[2], that we should try to remove most pcmcia drivers completely. Let's start with these char broken one.

Note that I also removed a UAPI header: include/uapi/linux/cm4000_cs.h. I found only coccinelle tests mentioning some ioctl constants from that file. But they are not actually used. Anyway, should someone complain, we may reintroduce the header (or its parts).

Quoted 4 lines

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

Thanks
Dominik

maintainer Reviewed-by on v2 2/2
#4 lore raw

Re: [PATCH v2 2/2] char: pcmcia: remove all the drivers

In reply to Jiri Slaby (SUSE)
Quoted 14 lines · Jiri Slaby (SUSE)

These char PCMCIA drivers are buggy[1] and receive only minimal care. It was concluded[2], that we should try to remove most pcmcia drivers completely. Let's start with these char broken one.

Note that I also removed a UAPI header: include/uapi/linux/cm4000_cs.h. I found only coccinelle tests mentioning some ioctl constants from that file. But they are not actually used. Anyway, should someone complain, we may reintroduce the header (or its parts).

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

Quoted 6 lines
Cc "Hyunwoo Kim" <[email protected]>
Cc Harald Welte <[email protected]>
Cc Lubomir Rintel <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

Thanks for cleaning this up!