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 finish_console_write() callback

Add finish_console_write() callback as RZ/G3E RSCI IP needs special
handling compared to other SoCs.

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-16-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
bbcd508c 5632bda5

+5 -1
+1
drivers/tty/serial/sh-sci-common.h
··· 93 93 void (*shutdown_complete)(struct uart_port *port); 94 94 95 95 void (*prepare_console_write)(struct uart_port *port, u32 ctrl); 96 + void (*finish_console_write)(struct uart_port *port, u32 ctrl); 96 97 void (*console_save)(struct uart_port *port); 97 98 void (*console_restore)(struct uart_port *port); 98 99 size_t (*suspend_regs_size)(void);
+4 -1
drivers/tty/serial/sh-sci.c
··· 3431 3431 cpu_relax(); 3432 3432 3433 3433 /* restore the SCSCR */ 3434 - sci_port->ops->write_reg(port, regs->control, ctrl); 3434 + if (sci_port->ops->finish_console_write) 3435 + sci_port->ops->finish_console_write(port, ctrl); 3436 + else 3437 + sci_port->ops->write_reg(port, regs->control, ctrl); 3435 3438 3436 3439 if (locked) 3437 3440 uart_port_unlock_irqrestore(port, flags);