net: stmmac: dwmac-qcom-ethqos: Update link clock rate only for RGMII
authorSarosh Hasan <quic_sarohasa@quicinc.com>
Mon, 26 Feb 2024 09:42:26 +0000 (15:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2024 11:22:02 +0000 (11:22 +0000)
commit26311cd112d05abe8cbe87189c93fa25cc25709b
tree774eecbac8fa01bfef1c55897929142b43092688
parentcfb9eb611d30c0b8bfc2820d8808037b63df2802
net: stmmac: dwmac-qcom-ethqos: Update link clock rate only for RGMII

Updating link clock rate for different speeds is only needed when
using RGMII, as that mode requires changing clock speed when the link
speed changes. Let's restrict updating the link clock speed in
ethqos_update_link_clk() to just RGMII. Other modes such as SGMII
only need to enable the link clock (which is already done in probe).

Signed-off-by: Sarosh Hasan <quic_sarohasa@quicinc.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Tested-by: Andrew Halaney <ahalaney@redhat.com> # sa8775p-ride
Reviewed-by: Abhishek Chauhan <quic_abchauha@quicinc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c