android_kernel_xiaomi_sm8450/drivers/tty
Hugo Villeneuve be5d6a297d serial: sc16is7xx: add check for unsupported SPI modes during probe
[ Upstream commit 6d710b769c1f5f0d55c9ad9bb49b7dce009ec103 ]

The original comment is confusing because it implies that variants other
than the SC16IS762 supports other SPI modes beside SPI_MODE_0.

Extract from datasheet:
    The SC16IS762 differs from the SC16IS752 in that it supports SPI clock
    speeds up to 15 Mbit/s instead of the 4 Mbit/s supported by the
    SC16IS752... In all other aspects, the SC16IS762 is functionally and
    electrically the same as the SC16IS752.

The same is also true of the SC16IS760 variant versus the SC16IS740 and
SC16IS750 variants.

For all variants, only SPI mode 0 is supported.

Change comment and abort probing if the specified SPI mode is not
SPI_MODE_0.

Fixes: 2c837a8a8f ("sc16is7xx: spi interface is added")
Cc:  <stable@vger.kernel.org>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20231221231823.2327894-3-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-23 08:41:51 +01:00
..
hvc hvc/xen: fix error path in xen_hvc_init() to always register frontend driver 2023-11-28 16:54:56 +00:00
ipwireless
serdev
serial serial: sc16is7xx: add check for unsupported SPI modes during probe 2024-02-23 08:41:51 +01:00
vt vc_screen: reload load of struct vc_data pointer in vcs_write() to avoid UAF 2023-05-30 12:57:55 +01:00
amiserial.c
cyclades.c tty: drivers/tty/, stop using tty_schedule_flip() 2022-07-29 17:19:27 +02:00
ehv_bytechan.c
goldfish.c tty: drivers/tty/, stop using tty_schedule_flip() 2022-07-29 17:19:27 +02:00
isicom.c
Kconfig
Makefile
mips_ejtag_fdc.c
moxa.c tty: drivers/tty/, stop using tty_schedule_flip() 2022-07-29 17:19:27 +02:00
moxa.h
mxser.c mxser: fix xmit_buf leak in activate when LSR == 0xff 2022-04-08 14:40:23 +02:00
mxser.h
n_gsm.c tty: n_gsm: add sanity check for gsm->receive in gsm_receive_buf() 2023-12-20 15:44:41 +01:00
n_hdlc.c tty: clean include/linux/tty.h up 2023-05-17 11:48:09 +02:00
n_null.c
n_r3964.c
n_tracerouter.c
n_tracesink.c
n_tracesink.h
n_tty.c tty: create internal tty.h file 2023-05-17 11:48:08 +02:00
nozomi.c
pty.c tty: create internal tty.h file 2023-05-17 11:48:08 +02:00
rocket_int.h
rocket.c
rocket.h
synclink_gt.c tty: synclink_gt: Fix null-pointer-dereference in slgt_clean() 2022-06-14 18:32:41 +02:00
synclink.c
synclinkmp.c
sysrq.c tty/sysrq: replace smp_processor_id() with get_cpu() 2023-11-28 16:54:56 +00:00
tty_audit.c tty: audit: move some local functions out of tty.h 2023-05-17 11:48:08 +02:00
tty_baudrate.c tty: clean include/linux/tty.h up 2023-05-17 11:48:09 +02:00
tty_buffer.c tty: move some internal tty lock enums and functions out of tty.h 2023-05-17 11:48:08 +02:00
tty_io.c usb: cdc-acm: return correct error code on unsupported break 2024-01-25 14:37:54 -08:00
tty_ioctl.c tty: change tty_write_lock()'s ndelay parameter to bool 2024-01-25 14:37:54 -08:00
tty_jobctrl.c tty: tty_jobctrl: fix pid memleak in disassociate_ctty() 2023-11-20 11:06:52 +01:00
tty_ldisc.c tty: create internal tty.h file 2023-05-17 11:48:08 +02:00
tty_ldsem.c
tty_mutex.c tty: move some internal tty lock enums and functions out of tty.h 2023-05-17 11:48:08 +02:00
tty_port.c tty: create internal tty.h file 2023-05-17 11:48:08 +02:00
tty.h tty: change tty_write_lock()'s ndelay parameter to bool 2024-01-25 14:37:54 -08:00
ttynull.c
vcc.c tty: vcc: Add check for kstrdup() in vcc_probe() 2023-11-28 16:54:52 +00:00