]> Gentwo Git Trees - linux/.git/commit
clk: qcom: gcc-ipq6018: rework nss_port5 clock to multiple conf
authorMarko Mäkelä <marko.makela@iki.fi>
Sat, 2 Aug 2025 09:55:46 +0000 (12:55 +0300)
committerBjorn Andersson <andersson@kernel.org>
Mon, 11 Aug 2025 16:23:33 +0000 (11:23 -0500)
commit2f7b168323c22faafb1fbf94ef93b7ce5efc15c6
tree21550c0d777d8edb114d65383b21281c58a66f63
parent6ef38b0c16c20701fb8a06d2d2114080fbc785ad
clk: qcom: gcc-ipq6018: rework nss_port5 clock to multiple conf

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

In OpenWrt, this patch avoids intermittent dmesg errors of the form
nss_port5_rx_clk_src: rcg didn't update its configuration.

This is a mechanical, straightforward port of
commit e88f03230dc07aa3293b6aeb078bd27370bb2594
("clk: qcom: gcc-ipq8074: rework nss_port5/6 clock to multiple conf")
to gcc-ipq6018, with two conflicts resolved: different frequency of the
P_XO clock source, and only 5 Ethernet ports.

This was originally developed by JiaY-shi <shi05275@163.com>.

Link: https://lore.kernel.org/all/20231220221724.3822-4-ansuelsmth@gmail.com/
Signed-off-by: Marko Mäkelä <marko.makela@iki.fi>
Tested-by: Marko Mäkelä <marko.makela@iki.fi>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250802095546.295448-1-marko.makela@iki.fi
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gcc-ipq6018.c