serial: stm32: extend max number of U(S)ART to 9
authorValentin Caron <valentin.caron@foss.st.com>
Fri, 12 Jan 2024 09:52:58 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jan 2024 03:04:11 +0000 (19:04 -0800)
STM32MP25x got 9 instances of U(S)ART. So extend STM32_MAX_PORTS to 9, in
order to handle all instances.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20240112095300.2004878-3-valentin.caron@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.h

index 8cecfdce9386b045b8017941235a005fecf97d4f..5ce1d3aae07e7a9fda0e33a7a7d6328fe3b211f2 100644 (file)
@@ -183,7 +183,7 @@ struct stm32_usart_info {
 #define USART_PRESC_MAX                0b1011
 
 #define STM32_SERIAL_NAME "ttySTM"
-#define STM32_MAX_PORTS 8
+#define STM32_MAX_PORTS 9
 
 #define RX_BUF_L 4096           /* dma rx buffer length     */
 #define RX_BUF_P (RX_BUF_L / 2)         /* dma rx buffer period     */