Skip to content

Commit 79d65fd

Browse files
SherrySun5gregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2c1fd53 commit 79d65fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/fsl_lpuart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245

246246
#define DRIVER_NAME "fsl-lpuart"
247247
#define DEV_NAME "ttyLP"
248-
#define UART_NR 8
248+
#define UART_NR 12
249249

250250
/* IMX lpuart has four extra unused regs located at the beginning */
251251
#define IMX_REG_OFF 0x10

0 commit comments

Comments
 (0)