Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: mcf: MCF54418 has 10 UARTS

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>

authored by

Jean-Michel Hautbois and committed by
Greg Kroah-Hartman
7c92a8bd 9d141c1e

+1 -1
+1 -1
drivers/tty/serial/mcf.c
··· 462 462 .verify_port = mcf_verify_port, 463 463 }; 464 464 465 - static struct mcf_uart mcf_ports[4]; 465 + static struct mcf_uart mcf_ports[10]; 466 466 467 467 #define MCF_MAXPORTS ARRAY_SIZE(mcf_ports) 468 468