Skip to content

Commit f1c5c55

Browse files
Ansuelgregkh
authored andcommitted
clk: qcom: gcc-ipq8074: fix broken freq table for nss_port6_tx_clk_src
commit 077ec7b upstream. With the conversion done by commit e88f032 ("clk: qcom: gcc-ipq8074: rework nss_port5/6 clock to multiple conf") a Copy-Paste error was made for the nss_port6_tx_clk_src frequency table. This was caused by the wrong setting of the parent in ftbl_nss_port6_tx_clk_src that was wrongly set to P_UNIPHY1_RX instead of P_UNIPHY2_TX. This cause the UNIPHY2 port to malfunction when it needs to be scaled to higher clock. The malfunction was observed with the example scenario with an Aquantia 10G PHY connected and a speed higher than 1G (example 2.5G) Fix the broken frequency table to restore original functionality. Cc: stable@vger.kernel.org Fixes: e88f032 ("clk: qcom: gcc-ipq8074: rework nss_port5/6 clock to multiple conf") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Tested-by: Robert Marko <robimarko@gmail.com> Link: https://lore.kernel.org/r/20250522202600.4028-1-ansuelsmth@gmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d10bf66 commit f1c5c55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/clk/qcom/gcc-ipq8074.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,10 +1895,10 @@ static const struct freq_conf ftbl_nss_port6_tx_clk_src_125[] = {
18951895
static const struct freq_multi_tbl ftbl_nss_port6_tx_clk_src[] = {
18961896
FMS(19200000, P_XO, 1, 0, 0),
18971897
FM(25000000, ftbl_nss_port6_tx_clk_src_25),
1898-
FMS(78125000, P_UNIPHY1_RX, 4, 0, 0),
1898+
FMS(78125000, P_UNIPHY2_TX, 4, 0, 0),
18991899
FM(125000000, ftbl_nss_port6_tx_clk_src_125),
1900-
FMS(156250000, P_UNIPHY1_RX, 2, 0, 0),
1901-
FMS(312500000, P_UNIPHY1_RX, 1, 0, 0),
1900+
FMS(156250000, P_UNIPHY2_TX, 2, 0, 0),
1901+
FMS(312500000, P_UNIPHY2_TX, 1, 0, 0),
19021902
{ }
19031903
};
19041904

0 commit comments

Comments
 (0)