linux-stable/drivers
Johan Hovold d38be70245 staging: greybus: uart: clean up TIOCGSERIAL
TIOCSSERIAL is a horrid, underspecified, legacy interface which for most
serial devices is only useful for setting the close_delay and
closing_wait parameters.

The xmit_fifo_size parameter could be used to set the hardware transmit
fifo size of a legacy UART when it could not be detected, but the
interface is limited to eight bits and should be left unset when not
used.

Similarly, baud_base could be used to set the UART base clock when it
could not be detected but might as well be left unset when it is not
known.

The type parameter could be used to set the UART type, but is
better left unspecified (type unknown) when it isn't used.

Note that some applications have historically expected TIOCGSERIAL to be
implemented, but judging from the Debian sources, the port type not
being PORT_UNKNOWN is only used to check for the existence of legacy
serial ports (ttySn). Notably USB serial drivers like ftdi_sio have been
using PORT_UNKNOWN for twenty years without any problems.

Drop the bogus values provided by the greybus implementation.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210407102334.32361-8-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-07 17:22:07 +02:00
..
accessibility
acpi Merge branches 'acpi-tables' and 'acpi-scan' 2021-04-02 16:57:56 +02:00
amba
android
ata
atm
auxdisplay
base Driver core fix for 5.12-rc6 2021-04-03 10:14:47 -07:00
bcma
block block-5.12-2021-04-02 2021-04-02 16:13:13 -07:00
bluetooth Merge 5.12-rc6 into tty-next 2021-04-05 08:59:21 +02:00
bus
cdrom
char
clk
clocksource
connector
counter
cpufreq cpufreq: Fix scaling_{available,boost}_frequencies_show() comments 2021-03-26 17:43:48 +01:00
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire firewire: nosy: Fix a use-after-free bug in nosy_ioctl() 2021-04-04 14:05:45 -07:00
firmware
fpga
fsi
gnss
gpio
gpu drm/imx: imx-drm-core and imx-ldb fixes 2021-04-02 04:53:16 +10:00
greybus
hid
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
ide
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
lightnvm
macintosh
mailbox
mcb
md dm ioctl: fix out of bounds array access when no devices 2021-03-26 14:51:50 -04:00
media
memory
memstick
message
mfd
misc Merge 5.12-rc6 into tty-next 2021-04-05 08:59:21 +02:00
mmc
most
mtd
mux
net Merge 5.12-rc6 into tty-next 2021-04-05 08:59:21 +02:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci
pcmcia
perf
phy
pinctrl intel-pinctrl for v5.12-3 2021-03-30 00:46:49 +02:00
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 Merge 5.12-rc6 into tty-next 2021-04-05 08:59:21 +02:00
sbus
scsi SCSI fixes on 20210402 2021-04-03 09:07:35 -07:00
sh
siox
slimbus
soc OpenRISC fix for 5.12 2021-04-03 15:42:45 -07:00
soundwire
spi
spmi
ssb
staging staging: greybus: uart: clean up TIOCGSERIAL 2021-04-07 17:22:07 +02:00
target
tc
tee
thermal
thunderbolt
tty tty: n_gsm: use DEFINE_SPINLOCK() for spinlock 2021-04-07 17:19:30 +02:00
uio
usb Merge 5.12-rc6 into tty-next 2021-04-05 08:59:21 +02:00
vdpa
vfio vfio/nvlink: Add missing SPAPR_TCE_IOMMU depends 2021-03-29 14:48:00 -06:00
vhost
video Merge 5.12-rc6 into tty-next 2021-04-05 08:59:21 +02:00
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen xen: branch for v5.12-rc5 2021-03-26 11:15:25 -07:00
zorro
Kconfig
Makefile