]> 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)
commit9f7cae4f4f53d9240ab51bb1649d4afc0ce91402
tree038d45cc6e884a2a5929546f6cd200f62a5c37c3
parentce6d480d17ec42745f31c20f0e04d387ee555a72
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