tty: serial: qcom-geni-serial: Remove uart frequency table. Instead, find suitable...
authorVijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Mon, 16 May 2022 10:38:30 +0000 (16:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 16:31:48 +0000 (18:31 +0200)
commitc2194bc999d41eff69301ee723b0c2979b6eb7bd
treee868a64116212c0ef5c8f839f3d117a8941add7a
parent4ed26f87c71f97d6551caeb2e9e533f8980e764e
tty: serial: qcom-geni-serial: Remove uart frequency table. Instead, find suitable frequency with call to clk_round_rate.

Replace the UART frequency table 'root_freq[]' with logic around
clk_round_rate() so that SoC details like the available clk frequencies
can change and this driver still works. This reduces tight coupling
between this UART driver and the SoC clk driver because we no longer
have to update the 'root_freq[]' array for new SoCs. Instead the driver
determines the available frequencies at runtime.

Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Link: https://lore.kernel.org/r/1652697510-30543-1-git-send-email-quic_vnivarth@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c