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: rsci: Drop rsci_clear_SCxSR()

Drop rsci_clear_SCxSR by reusing rsci_clear_CFC() as the contents of
both functions are the same.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
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-6-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
450bd399 42f7303c

+2 -6
+2 -6
drivers/tty/serial/rsci.c
··· 137 137 rsci_serial_out(port, FFCLR, FFCLR_DRC); 138 138 } 139 139 140 - static void rsci_clear_SCxSR(struct uart_port *port, unsigned int mask) 141 - { 142 - rsci_serial_out(port, CFCLR, mask); 143 - } 144 140 145 141 static void rsci_start_rx(struct uart_port *port) 146 142 { ··· 387 391 } 388 392 rsci_serial_out(port, TDR, c); 389 393 done: 390 - rsci_clear_SCxSR(port, CFCLR_TDREC); 394 + rsci_clear_CFC(port, CFCLR_TDREC); 391 395 } 392 396 393 397 static void rsci_prepare_console_write(struct uart_port *port, u32 ctrl) ··· 460 464 static const struct sci_port_ops rsci_port_ops = { 461 465 .read_reg = rsci_serial_in, 462 466 .write_reg = rsci_serial_out, 463 - .clear_SCxSR = rsci_clear_SCxSR, 467 + .clear_SCxSR = rsci_clear_CFC, 464 468 .transmit_chars = rsci_transmit_chars, 465 469 .receive_chars = rsci_receive_chars, 466 470 .poll_put_char = rsci_poll_put_char,