From: Sherry Sun Date: Fri, 3 Jan 2025 07:11:54 +0000 (+0800) Subject: tty: serial: fsl_lpuart: increase maximum uart_nr to 12 X-Git-Tag: v6.14-rc1~59^2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79d65fda55cf1a6dac96a69913cd2294a3d8948a;p=thirdparty%2Fkernel%2Flinux.git tty: serial: fsl_lpuart: increase maximum uart_nr to 12 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 Link: https://lore.kernel.org/r/20250103071154.3070924-1-sherry.sun@nxp.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 57b0632a3db6f..7cb1e36fdaab7 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -245,7 +245,7 @@ #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