clk: qcom: gcc-ipq8074: rework nss_port5/6 clock to multiple conf
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 20 Dec 2023 22:17:24 +0000 (23:17 +0100)
committerBjorn Andersson <andersson@kernel.org>
Sat, 27 Apr 2024 18:01:14 +0000 (13:01 -0500)
commite88f03230dc07aa3293b6aeb078bd27370bb2594
tree229451b6900daa276b0ce554f687277bc88fa8f5
parent89da22456af0762477d8c1345fdd17961b3ada80
clk: qcom: gcc-ipq8074: rework nss_port5/6 clock to multiple conf

Rework nss_port5/6 to use the new multiple configuration implementation
and correctly fix the clocks for these port under some corner case.

This is particularly relevant for device that have 2.5G or 10G port
connected to port5 or port 6 on ipq8074. As the parent are shared
across multiple port it may be required to select the correct
configuration to accomplish the desired clock. Without this patch such
port doesn't work in some specific ethernet speed as the clock will be
set to the wrong frequency as we just select the first configuration for
the related frequency instead of selecting the best one.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20231220221724.3822-4-ansuelsmth@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gcc-ipq8074.c