]> Gentwo Git Trees - linux/.git/commit
serial: qcom-geni: Dynamically allocate UART ports
authorZong Jiang <quic_zongjian@quicinc.com>
Tue, 12 Aug 2025 05:48:18 +0000 (13:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Aug 2025 09:59:29 +0000 (11:59 +0200)
commitc3e7966c60745f87a0b73672a85c920099f90a7e
treeb7724e492107e44820deb8cab86deb35155fe605
parent8672b18cde548748ac04a3aa247369ac2d4c2985
serial: qcom-geni: Dynamically allocate UART ports

Replace the static allocation of UART ports with dynamic allocation
using devm_kzalloc. This change removes the fixed-size array and instead
allocates each UART port structure on demand during probe, improving
memory efficiency and scalability.

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