From: Hsin-Yi Wang Date: Tue, 15 Sep 2020 05:48:27 +0000 (+0800) Subject: tty: serial: 8250_mtk: set regshift for mmio32 X-Git-Tag: v5.15~2677^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea4de367e57d53b37ecb32cea3b5c753162b070a;p=platform%2Fkernel%2Flinux-starfive.git tty: serial: 8250_mtk: set regshift for mmio32 To use mmio32, we also need to set regshift. Signed-off-by: Hsin-Yi Wang Acked-by: Eddie Huang Link: https://lore.kernel.org/r/20200915054825.3289105-2-hsinyi@chromium.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c index 7b0dec1..41f4120 100644 --- a/drivers/tty/serial/8250/8250_mtk.c +++ b/drivers/tty/serial/8250/8250_mtk.c @@ -669,6 +669,7 @@ static int __init early_mtk8250_setup(struct earlycon_device *device, return -ENODEV; device->port.iotype = UPIO_MEM32; + device->port.regshift = 2; return early_serial8250_setup(device, NULL); }