]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tty: mcf: MCF54418 has 10 UARTS
authorJean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
Thu, 20 Jun 2024 16:29:59 +0000 (18:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 14:13:05 +0000 (16:13 +0200)
Most of the colfires have up to 5 UARTs but MCF54418 has up-to 10 !
Change the maximum value authorized.

Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
Cc: stable <stable@kernel.org>
Fixes: 2545cf6e94b4 ("m68knommu: allow 4 coldfire serial ports")
Link: https://lore.kernel.org/r/20240620-upstream-uart-v1-1-a9d0d95fb19e@yoseli.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mcf.c

index b0604d6da0257934581368033d4b3b88cb92a4b4..58858dd352c59bfd44ea6922b9ae01b103d588d0 100644 (file)
@@ -462,7 +462,7 @@ static const struct uart_ops mcf_uart_ops = {
        .verify_port    = mcf_verify_port,
 };
 
-static struct mcf_uart mcf_ports[4];
+static struct mcf_uart mcf_ports[10];
 
 #define        MCF_MAXPORTS    ARRAY_SIZE(mcf_ports)