OSDN Git Service

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)
commit3e782985cb3ce00a32c372b37d8feefdae18ddf1
tree038d45cc6e884a2a5929546f6cd200f62a5c37c3
parent29ae6bd1b0d8a57d7c00ab12cbb949fc41986eef
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