]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: fec: Allow the MDIO preamble to be disabled
authorAndrew Lunn <andrew@lunn.ch>
Sun, 19 Apr 2020 22:04:02 +0000 (00:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 19:37:08 +0000 (12:37 -0700)
commit2ac98659af4305fca4ce23d628f2f72840c48b7d
treef8aa28032665f846453415cddc78b8dca8b84580
parentef451c655d6d53920328d7d9ed093a030c7ef2f6
net: ethernet: fec: Allow the MDIO preamble to be disabled

An MDIO transaction normally starts with 32 1s as a preamble. However
not all devices requires such a preamble. Add a device tree property
which allows the preamble to be suppressed. This will half the size of
the MDIO transaction, allowing faster transactions. But it should only
be used when all devices on the bus support suppressed preamble.

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/mdio.yaml
drivers/net/ethernet/freescale/fec_main.c