Skip to content

Commit f92ed0c

Browse files
bijudasgregkh
authored andcommitted
tty: serial: sh-sci: Fix Rx on RZ/G2L SCI
SCI IP on RZ/G2L alike SoCs do not need regshift compared to other SCI IPs on the SH platform. Currently, it does regshift and configuring Rx wrongly. Drop adding regshift for RZ/G2L alike SoCs. Fixes: dfc8038 ("serial: sh-sci: Compute the regshift value for SCI ports") Cc: stable@vger.kernel.org Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://lore.kernel.org/r/20230321114753.75038-3-biju.das.jz@bp.renesas.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 178e00f commit f92ed0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/sh-sci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2937,7 +2937,7 @@ static int sci_init_single(struct platform_device *dev,
29372937
port->flags = UPF_FIXED_PORT | UPF_BOOT_AUTOCONF | p->flags;
29382938
port->fifosize = sci_port->params->fifosize;
29392939

2940-
if (port->type == PORT_SCI) {
2940+
if (port->type == PORT_SCI && !dev->dev.of_node) {
29412941
if (sci_port->reg_size >= 0x20)
29422942
port->regshift = 2;
29432943
else

0 commit comments

Comments
 (0)