]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tty: serial: fsl_lpuart: increase maximum uart_nr to 12
authorSherry Sun <sherry.sun@nxp.com>
Fri, 3 Jan 2025 07:11:54 +0000 (15:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Jan 2025 10:50:01 +0000 (11:50 +0100)
Some SoCs like the i.MX943 have aliases for up to 12 UARTs, need to
increase UART_NR from 8 to 12 to support lpuart9-12 to avoid
initialization failures.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20250103071154.3070924-1-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c

index 57b0632a3db6fbf31c8ae07682a89c9d31f7eb8d..7cb1e36fdaab78f3f536067e925e1f78a17b2942 100644 (file)
 
 #define DRIVER_NAME    "fsl-lpuart"
 #define DEV_NAME       "ttyLP"
-#define UART_NR                8
+#define UART_NR                12
 
 /* IMX lpuart has four extra unused regs located at the beginning */
 #define IMX_REG_OFF    0x10