]> 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)
commit102f8fa9514ef69072f72fab5b90404e427ce08b
treef8aa28032665f846453415cddc78b8dca8b84580
parent9f7cae4f4f53d9240ab51bb1649d4afc0ce91402
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