net: micrel: Fix the frequency adjustments
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Thu, 1 Feb 2024 20:42:03 +0000 (21:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Feb 2024 13:34:19 +0000 (13:34 +0000)
commit7d7bf30f031b8e2474eefe64230609b45030bd3d
tree6f09c019b6fe5e0c219ef69c1748d40fb874d65f
parentd6aa8e0aa605a6baba08220e4a83fa2619a4c4d7
net: micrel: Fix the frequency adjustments

By default lan8841's 1588 clock frequency is 125MHz. But when adjusting
the frequency, it is using the 1PPM format of the lan8814. Which is the
wrong format as lan8814 has a 1588 clock frequency of 250MHz. So then
for each 1PPM adjustment would adjust less than expected.
Therefore fix this by using the correct 1PPM format for lan8841.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c