net: stmmac: dwmac-qcom-ethqos: Use max frequency for clk_ptp_ref
authorAndrew Halaney <ahalaney@redhat.com>
Tue, 25 Jul 2023 21:04:26 +0000 (16:04 -0500)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Jul 2023 03:32:57 +0000 (20:32 -0700)
commitdb845b9b2040f4ed5f8bce6cd30103e3b8557566
tree1bf390afd7dbb42563472fb223fc5b48fce7d9ca
parentd928d14be6514af9da37009c2091270c5c714366
net: stmmac: dwmac-qcom-ethqos: Use max frequency for clk_ptp_ref

Qualcomm clocks can set their frequency to a variety of levels
generally. Let's use the max for clk_ptp_ref to ensure the best
timestamping resolution possible.

Without this, the default value of the clock is used. For sa8775p-ride
this is 19.2 MHz, far less than the 230.4 MHz possible.

Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Link: https://lore.kernel.org/r/20230725211853.895832-4-ahalaney@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c