mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 19:26:51 +07:00
serial: sh-sci: Preserve SCIFA/SCIFB bit rate config for serial console
SCIFA and SCIFB have additional bit rate config bits in the Serial Mode Register. Don't touch them when using the port as a serial console, as we rely on the boot loader to have configured the serial port config. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
95ee05c7ad
commit
3a964abe1e
@ -2202,7 +2202,8 @@ static void sci_set_termios(struct uart_port *port, struct ktermios *termios,
|
||||
} else {
|
||||
/* Don't touch the bit rate configuration */
|
||||
scr_val = s->cfg->scscr & (SCSCR_CKE1 | SCSCR_CKE0);
|
||||
smr_val |= serial_port_in(port, SCSMR) & SCSMR_CKS;
|
||||
smr_val |= serial_port_in(port, SCSMR) &
|
||||
(SCSMR_CKEDG | SCSMR_SRC_MASK | SCSMR_CKS);
|
||||
dev_dbg(port->dev, "SCR 0x%x SMR 0x%x\n", scr_val, smr_val);
|
||||
serial_port_out(port, SCSCR, scr_val);
|
||||
serial_port_out(port, SCSMR, smr_val);
|
||||
|
Loading…
Reference in New Issue
Block a user