mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-02 02:19:54 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5632bda5e8
commit
bbcd508c84
@@ -93,6 +93,7 @@ struct sci_port_ops {
|
||||
void (*shutdown_complete)(struct uart_port *port);
|
||||
|
||||
void (*prepare_console_write)(struct uart_port *port, u32 ctrl);
|
||||
void (*finish_console_write)(struct uart_port *port, u32 ctrl);
|
||||
void (*console_save)(struct uart_port *port);
|
||||
void (*console_restore)(struct uart_port *port);
|
||||
size_t (*suspend_regs_size)(void);
|
||||
|
||||
@@ -3431,7 +3431,10 @@ static void serial_console_write(struct console *co, const char *s,
|
||||
cpu_relax();
|
||||
|
||||
/* restore the SCSCR */
|
||||
sci_port->ops->write_reg(port, regs->control, ctrl);
|
||||
if (sci_port->ops->finish_console_write)
|
||||
sci_port->ops->finish_console_write(port, ctrl);
|
||||
else
|
||||
sci_port->ops->write_reg(port, regs->control, ctrl);
|
||||
|
||||
if (locked)
|
||||
uart_port_unlock_irqrestore(port, flags);
|
||||
|
||||
Reference in New Issue
Block a user