mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
serial: sh-sci: Fix misplaced backport of "Fix late enablement of AUTORTS"
The upstream commit5f76895e4c("serial: sh-sci: Fix late enablement of AUTORTS") inserted a new call to .set_mctrl(). However the backported version in stable (commitad3faea03f("serial: sh-sci: Fix late enablement of AUTORTS")) does not insert it at the same position. This patch moves the added instructions back to where they should be according to the upsteam patch. Fixes:ad3faea03f("serial: sh-sci: Fix late enablement of AUTORTS") Signed-off-by: Guillaume Bertholon <guillaume.bertholon@ens.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
29c00a3756
commit
40555e6d2b
@@ -2377,6 +2377,10 @@ done:
|
||||
|
||||
serial_port_out(port, SCFCR, ctrl);
|
||||
}
|
||||
if (port->flags & UPF_HARD_FLOW) {
|
||||
/* Refresh (Auto) RTS */
|
||||
sci_set_mctrl(port, port->mctrl);
|
||||
}
|
||||
|
||||
scr_val |= s->cfg->scscr & ~(SCSCR_CKE1 | SCSCR_CKE0);
|
||||
dev_dbg(port->dev, "SCSCR 0x%x\n", scr_val);
|
||||
@@ -2391,10 +2395,6 @@ done:
|
||||
*/
|
||||
udelay(DIV_ROUND_UP(10 * 1000000, baud));
|
||||
}
|
||||
if (port->flags & UPF_HARD_FLOW) {
|
||||
/* Refresh (Auto) RTS */
|
||||
sci_set_mctrl(port, port->mctrl);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SERIAL_SH_SCI_DMA
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user