tty: synclink_gt: remove broken driver
Subsystems (6)
PATCH 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.
--- .../userspace-api/ioctl/ioctl-number.rst | 2 +- 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 - include/uapi/linux/synclink.h | 301 - 9 files changed, 4 insertions(+), 5398 deletions(-) delete mode 100644 drivers/tty/synclink_gt.c delete mode 100644 include/linux/synclink.h delete mode 100644 include/uapi/linux/synclink.h
Documentation/userspace-api/ioctl/ioctl-number.rst +1 -1
@@ -271,7 +271,7 @@ 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' all linux/synclink.h Dead since 2026 '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
@@ -574,7 +574,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
@@ -201,8 +201,8 @@ config PPP_SYNC_TTY depends on PPP 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,927 lines not on this page · raw message
include/uapi/linux/synclink.h deleted +0 -301
301 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.
Jiri Slaby
maintainerQuoted 6 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.
Overall, I am all for it, but a few remarks:
Quoted 10 lines
Signed-off-by Ethan Nelson-Moore <[email protected]>--- .../userspace-api/ioctl/ioctl-number.rst | 2 +- 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 -
vvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Quoted 1 line
include/uapi/linux/synclink.h | 301 -
Have you checked this is not included in any relevant userspace? How? Hints: debian code search, github...
Documentation/userspace-api/ioctl/ioctl-number.rst Code Seq# Include File Comments · line 274
Quoted 10 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1
-1@@ -271,7 +271,7 @@ 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' all linux/synclink.h Dead since 2026
I would just drop the line, removing one conflicting entry. The letter is not going to be dead.
Or is this Dead note some ioctl-number's policy?
Quoted 12 lines
drivers/tty/n_hdlc.c +0
-2@@ -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]>
drivers/tty/n_hdlc.c line 60
Quoted 7 lines
drivers/tty/n_hdlc.c +0
-4@@ -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 paragraph actually talks about long removed synclink.c, removed in:
a1f714b44e34 tty: Remove redundant synclink driver
But OK, let's kick all the remaining traces of synclinks. thanks,
Signature · 2 lines
js suse labs
Hi, Jiri,
Thanks for your feedback.
Quoted 2 lines · Jiri Slaby
Have you checked this is not included in any relevant userspace? How?
Hints: debian code search, github...
The only references in Debian Code Search outside the kernel are in libexplain (which has a configure test for the presence of this header and should be fine), lists of files, and lists of ioctls, e.g. in strace, which do not include the header itself.
The only reference of note on GitHub (although I can't look past the 5th page of results) is in
https://github.com/sunfishcode/linux-raw-sys, which includes every Linux header as part of its binding generation process, and has already had to drop other headers as they were removed:
https://github.com/sunfishcode/linux-raw-sys/commit/a804ac01491f63c8ce879ef27254d27dfcf89ff2
The package ships a generated version of the bindings, so the header is not needed by normal users.
If this commit is merged, I will send a pull request to remove <linux/synclink.h> from the code.
It was also used in old versions of
https://github.com/jerome-pouiller/ioctl but recent versions automatically generate the list of ioctls on every build. Is this okay with you, or should I send a new version of the patch with <linux/synclink.h> retained?
Quoted 4 lines
I would just drop the line, removing one conflicting entry. The letter is not going to be dead.
Or is this Dead note some ioctl-number's policy?
It was used in quite a few other entries, so I just followed their example.
Quoted 2 lines
This paragraph actually talks about long removed
synclink.c, removed in:
a1f714b44e34tty: Remove redundant synclink driver
Good to know.
Ethan