public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tty: serial: fsl_lpuart: increase maximum uart_nr to 12
@ 2025-01-03  7:11 Sherry Sun
  2025-01-03  9:08 ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Sherry Sun @ 2025-01-03  7:11 UTC (permalink / raw)
  To: gregkh, jirislaby; +Cc: linux-serial, linux-kernel, imx

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>
---
 drivers/tty/serial/fsl_lpuart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
index 57b0632a3db6..7cb1e36fdaab 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
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-07  9:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-03  7:11 [PATCH] tty: serial: fsl_lpuart: increase maximum uart_nr to 12 Sherry Sun
2025-01-03  9:08 ` Greg KH
2025-01-06 10:24   ` Sherry Sun
2025-01-06 13:44     ` Greg KH
2025-01-07  8:16       ` Sherry Sun
2025-01-07  8:29       ` Sherry Sun
2025-01-07  8:43         ` Greg KH
2025-01-07  9:54           ` Sherry Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox