tty: synclink_gt: remove broken driver
Subsystems (6)
PATCH v2 1/1 tty: synclink_gt: remove broken driver
The synclink_gt driver was marked as broken in commit 426263d5fb40 ("tty: synclink_gt: mark as BROKEN") in July 2023 because it had severe structural problems and there had been no evidence of users since 2016. Since then, no meaningful improvements have been made to the driver, and it is unlikely that will ever happen due to the lack of interest. Drop the driver and references to it in comments and documentation. Retain include/uapi/linux/synclink.h to avoid breaking userspace software.
---
Changes from v1:
- Retain UAPI header - the linux-raw-sys Rust crate generates bindings
for it [1]
- Remove Documentation/userspace-api/ioctl/ioctl-number.rst entry
instead of marking it as dead; other recent driver removals have simply
removed entries
[1] https://github.com/sunfishcode/linux-raw-sys/blob/3b15c17f2688445cd3e9ef2907113829837773dd/gen/ioctl/list.c#L151
.../userspace-api/ioctl/ioctl-number.rst | 1 - arch/powerpc/configs/ppc6xx_defconfig | 1 - drivers/net/ppp/Kconfig | 4 +- drivers/tty/Kconfig | 11 +- drivers/tty/Makefile | 1 - drivers/tty/n_hdlc.c | 7 - drivers/tty/synclink_gt.c | 5038 ----------------- include/linux/synclink.h | 37 - 8 files changed, 3 insertions(+), 5097 deletions(-) delete mode 100644 drivers/tty/synclink_gt.c delete mode 100644 include/linux/synclink.h
Documentation/userspace-api/ioctl/ioctl-number.rst +0 -1
@@ -271,7 +271,6 @@ Code Seq# Include File Comments 'm' 00-09 linux/mmtimer.h conflict! 'm' all linux/mtio.h conflict! 'm' all linux/soundcard.h conflict! -'m' all linux/synclink.h conflict! 'm' 00-19 drivers/message/fusion/mptctl.h conflict! 'm' 00 drivers/scsi/megaraid/megaraid_ioctl.h conflict! 'n' 00-7F linux/ncp_fs.h and fs/ncpfs/ioctl.c
arch/powerpc/configs/ppc6xx_defconfig +0 -1
@@ -551,7 +551,6 @@ CONFIG_GAMEPORT_EMU10K1=m CONFIG_GAMEPORT_FM801=m # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_NONSTANDARD=y -CONFIG_SYNCLINK_GT=m CONFIG_NOZOMI=m CONFIG_N_HDLC=m CONFIG_SERIAL_8250=y
drivers/net/ppp/Kconfig +2 -2
@@ -191,8 +191,8 @@ config PPP_SYNC_TTY tristate "PPP support for sync tty ports" help Say Y (or M) here if you want to be able to use PPP over synchronous - (HDLC) tty devices, such as the SyncLink adapter. These devices - are often used for high-speed leased lines like T1/E1. + (HDLC) tty devices. These devices are often used for high-speed leased + lines like T1/E1. To compile this driver as a module, choose M here.
drivers/tty/Kconfig +1 -10
@@ -231,21 +231,12 @@ config MOXA_SMARTIO This driver can also be built as a module. The module will be called mxser. If you want to do that, say M here. -config SYNCLINK_GT - tristate "SyncLink GT/AC support" - depends on SERIAL_NONSTANDARD && PCI - depends on BROKEN - help - Support for SyncLink GT and SyncLink AC families of - synchronous and asynchronous serial adapters - manufactured by Microgate Systems, Ltd. (www.microgate.com) - config N_HDLC tristate "HDLC line discipline support" depends on SERIAL_NONSTANDARD help Allows synchronous HDLC communications with tty device drivers that - support synchronous HDLC such as the Microgate SyncLink adapter. + support synchronous HDLC. This driver can be built as a module ( = code which can be inserted in and removed from the running kernel whenever you want).
drivers/tty/Makefile +0 -1
@@ -21,7 +21,6 @@ obj-$(CONFIG_MOXA_INTELLIO) += moxa.o obj-$(CONFIG_MOXA_SMARTIO) += mxser.o obj-$(CONFIG_NOZOMI) += nozomi.o obj-$(CONFIG_NULL_TTY) += ttynull.o -obj-$(CONFIG_SYNCLINK_GT) += synclink_gt.o obj-$(CONFIG_PPC_EPAPR_HV_BYTECHAN) += ehv_bytechan.o obj-$(CONFIG_GOLDFISH_TTY) += goldfish.o obj-$(CONFIG_MIPS_EJTAG_FDC_TTY) += mips_ejtag_fdc.o
drivers/tty/n_hdlc.c +0 -7
@@ -4,8 +4,6 @@* Written by Paul Fulghum [email protected] * for Microgate Corporation * -* Microgate and SyncLink are registered trademarks of Microgate Corporation -* * Adapted from ppp.c, written by Michael Callahan <[email protected]>, * Al Longyear <[email protected]>, * Paul Mackerras <[email protected]>
@@ -54,11 +52,6 @@* this line discipline (or another line discipline that is frame * oriented such as N_PPP). * -* The SyncLink driver (synclink.c) implements both asynchronous -* (using standard line discipline N_TTY) and synchronous HDLC -* (using N_HDLC) communications, with the latter using the above -* conventions. -* * This implementation is very basic and does not maintain * any statistics. The main point is to enforce the raw data * and frame orientation of HDLC communications.
drivers/tty/synclink_gt.c deleted +0 -5038
2,928 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.
Greg Kroah-Hartman
maintainerQuoted 9 lines · Ethan Nelson-Moore
The
synclink_gtdriver was marked as broken in commit426263d5fb40("tty:synclink_gt: mark as BROKEN") in July 2023 because it had severe structural problems and there had been no evidence of users since 2016. Since then, no meaningful improvements have been made to the driver, and it is unlikely that will ever happen due to the lack of interest. Drop the driver and references to it in comments and documentation. Retaininclude/uapi/linux/synclink.hto avoid breaking userspace software.
Quoted 5 lines
Signed-off-by Ethan Nelson-Moore <[email protected]>---
Changes from v1:
- Retain UAPI header - the linux-raw-sys Rust crate generates bindings for it [1]
Then that means someone uses it somewhere. Don't generate bindings for something that will break because it is no longer in the tree :(
If no one does use it, then please get that project to fix their code so that we don't break their build.
thanks,
greg k-h
Hi, Greg,
Quoted 2 lines · Greg Kroah-Hartman
Then that means someone uses it somewhere. Don't generate bindings for something that will break because it is no longer in the tree :(
That project generates bindings for every UAPI header automatically, but has a hardcoded lost of them, so its presence there doesn't mean anyone is using it.
Quoted 2 lines
If no one does use it, then please get that project to fix their code so that we don't break their build.
They have had to remove headers from their list that got removed from the kernel before. I will send them a pull request to remove this header and then resend this patch with the UAPI header removal restored. Does that sound good to you?
Ethan
Greg Kroah-Hartman
maintainerQuoted 10 lines · Ethan Nelson-Moore
Hi, Greg,
Quoted 2 lines · Greg Kroah-Hartman
Then that means someone uses it somewhere. Don't generate bindings for something that will break because it is no longer in the tree :(
That project generates bindings for every UAPI header automatically, but has a hardcoded lost of them, so its presence there doesn't mean anyone is using it.
Quoted 6 lines
Quoted 2 lines
If no one does use it, then please get that project to fix their code so that we don't break their build.
They have had to remove headers from their list that got removed from the kernel before. I will send them a pull request to remove this header and then resend this patch with the UAPI header removal restored. Does that sound good to you?
Yes, thanks.
Quoted 10 lines · Ethan Nelson-Moore
Hi, Greg,
Quoted 2 lines · Greg Kroah-Hartman
Then that means someone uses it somewhere. Don't generate bindings for something that will break because it is no longer in the tree :(
That project generates bindings for every UAPI header automatically, but has a hardcoded list of them, so its presence there doesn't mean anyone is using it.
Quoted 6 lines
Quoted 2 lines
If no one does use it, then please get that project to fix their code so that we don't break their build.
They have had to remove headers from their list that got removed from the kernel before. I will send them a pull request to remove this header and then resend this patch with the UAPI header removal restored. Does that sound good to you?
Sounds like a whack a mole problem. I assume the recent removal of ATM broke it as well? Maybe __has_include() could be used?
Andrew
Hi, Andrew,
Quoted 2 lines · Andrew Lunn
Sounds like a whack a mole problem. I assume the recent removal of ATM broke it as well? Maybe
__has_include()could be used?
That's a great idea. I will investigate that.
Ethan