Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: stm32: extend max number of U(S)ART to 9

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>

authored by

Valentin Caron and committed by
Greg Kroah-Hartman
7316888f ec240f88

+1 -1
+1 -1
drivers/tty/serial/stm32-usart.h
··· 183 183 #define USART_PRESC_MAX 0b1011 184 184 185 185 #define STM32_SERIAL_NAME "ttySTM" 186 - #define STM32_MAX_PORTS 8 186 + #define STM32_MAX_PORTS 9 187 187 188 188 #define RX_BUF_L 4096 /* dma rx buffer length */ 189 189 #define RX_BUF_P (RX_BUF_L / 2) /* dma rx buffer period */