]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: fec: Allow configuration of MDIO bus speed
authorAndrew Lunn <andrew@lunn.ch>
Sun, 19 Apr 2020 22:04:01 +0000 (00:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 19:37:08 +0000 (12:37 -0700)
commitef451c655d6d53920328d7d9ed093a030c7ef2f6
tree038d45cc6e884a2a5929546f6cd200f62a5c37c3
parentee4e250c8a0c3d95c26f7ed583cdeef417800765
net: ethernet: fec: Allow configuration of MDIO bus speed

MDIO busses typically operate at 2.5MHz. However many devices can
operate at faster speeds. This then allows more MDIO transactions per
second, useful for Ethernet switch statistics, or Ethernet PHY TDR
data. Allow the bus speed to be configured, using the standard
"clock-frequency" property, which i2c busses use to indicate the bus
speed. Before using this property, ensure all devices on the bus do
actually support the requested clock speed.

Suggested-by: Chris Healy <Chris.Healy@zii.aero>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/fsl-fec.txt
Documentation/devicetree/bindings/net/mdio.yaml
drivers/net/ethernet/freescale/fec_main.c