diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-03-21 11:47:50 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-13 16:48:22 +0200 |
commit | ad142624ccc3c4455ea3551e6b7ae38ac4f6ce90 (patch) | |
tree | 7f7189430e823ab598e678c9d6b08f77e900d6cb | |
parent | 1184bd5c5ee4440eea63f632a77326ff00e2e2e3 (diff) | |
download | linux-stable-ad142624ccc3c4455ea3551e6b7ae38ac4f6ce90.tar.gz linux-stable-ad142624ccc3c4455ea3551e6b7ae38ac4f6ce90.tar.bz2 linux-stable-ad142624ccc3c4455ea3551e6b7ae38ac4f6ce90.zip |
tty: serial: sh-sci: Fix Rx on RZ/G2L SCI
commit f92ed0cd9328aed918ebb0ebb64d259eccbcc6e7 upstream.
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: dfc80387aefb ("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>
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 7b4421550ef8..25318176091b 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -2968,7 +2968,7 @@ static int sci_init_single(struct platform_device *dev, port->flags = UPF_FIXED_PORT | UPF_BOOT_AUTOCONF | p->flags; port->fifosize = sci_port->params->fifosize; - if (port->type == PORT_SCI) { + if (port->type == PORT_SCI && !dev->dev.of_node) { if (sci_port->reg_size >= 0x20) port->regshift = 2; else |