Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: sh-sci: Add RSCI_PORT_SCIF32 port ID

The RZ/G3E RSCI IP has 32-stage FIFO compared to 16-stage FIFO on RZ/T2H.
Add RSCI_PORT_SCIF32 port ID to differentiate it from RZ/T2H RSCI and
update sci_is_rsci_type() and sci_is_fifo_type()

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://patch.msgid.link/20251129164325.209213-13-biju.das.jz@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Biju Das and committed by
Greg Kroah-Hartman
4cb2bd1b d53f4aa9

+2 -1
+1
drivers/tty/serial/sh-sci-common.h
··· 8 8 /* Private port IDs */ 9 9 enum SCI_PORT_TYPE { 10 10 RSCI_PORT_SCIF16 = BIT(7) | 0, 11 + RSCI_PORT_SCIF32 = BIT(7) | 1, 11 12 }; 12 13 13 14 enum SCI_CLKS {
+1 -1
drivers/tty/serial/sh-sci.c
··· 1184 1184 1185 1185 static bool sci_is_rsci_type(u8 type) 1186 1186 { 1187 - return (type == RSCI_PORT_SCIF16); 1187 + return (type == RSCI_PORT_SCIF16 || type == RSCI_PORT_SCIF32); 1188 1188 } 1189 1189 1190 1190 static int sci_handle_fifo_overrun(struct uart_port *port)