]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: qcom-geni: Make UART port count configurable via Kconfig
authorZong Jiang <quic_zongjian@quicinc.com>
Tue, 12 Aug 2025 05:48:19 +0000 (13:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Aug 2025 09:59:29 +0000 (11:59 +0200)
commit9391ab1ed9b3fe0d1af7d7858d9bf42f476628c8
treee0ae1ef1471cfa1be3c28ed0aa674b2889279a76
parentc3e7966c60745f87a0b73672a85c920099f90a7e
serial: qcom-geni: Make UART port count configurable via Kconfig

Replace the hardcoded GENI_UART_PORTS macro with a new Kconfig option
SERIAL_QCOM_GENI_UART_PORTS to allow platforms to configure the maximum
number of UART ports supported by the driver at build time.

This improves flexibility for platforms that require more than the
previously fixed number of UART ports, and avoids unnecessary allocation
for unused ports.

Signed-off-by: Zong Jiang <quic_zongjian@quicinc.com>
Link: https://lore.kernel.org/r/20250812054819.3748649-3-quic_zongjian@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig
drivers/tty/serial/qcom_geni_serial.c