From: Rodríguez Barbarin, José Javier Date: Wed, 5 Jul 2023 13:15:10 +0000 (+0000) Subject: 8250_men_mcb: Add clockrate speed for G215/F215 boards X-Git-Tag: v6.6.17~4037^2~182 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=328c79dd0e70da2126d5c122b0a74a1af93af730;p=platform%2Fkernel%2Flinux-rpi.git 8250_men_mcb: Add clockrate speed for G215/F215 boards Some F215 FPGA multifunction boards announce themselves as 215. This leads to a misconfigured clockrate. The F215 is the same board as G215 but with different cPCI interface so make them get the same configuration Co-developed-by: Jorge Sanjuan Garcia Signed-off-by: Jorge Sanjuan Garcia Signed-off-by: Javier Rodriguez Link: https://lore.kernel.org/r/20230705131423.30552-2-josejavier.rodriguez@duagon.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_men_mcb.c b/drivers/tty/serial/8250/8250_men_mcb.c index f46ca13..a2cdaeb 100644 --- a/drivers/tty/serial/8250/8250_men_mcb.c +++ b/drivers/tty/serial/8250/8250_men_mcb.c @@ -37,10 +37,10 @@ static u32 men_lookup_uartclk(struct mcb_device *mdev) clkval = 1041666; else if (strncmp(mdev->bus->name, "F216", 4) == 0) clkval = 1843200; - else if (strncmp(mdev->bus->name, "G215", 4) == 0) - clkval = 1843200; else if (strncmp(mdev->bus->name, "F210", 4) == 0) clkval = 115200; + else if (strstr(mdev->bus->name, "215")) + clkval = 1843200; else dev_info(&mdev->dev, "board not detected, using default uartclk\n");