stmmac: create of compatible mdio bus for stmmac driver
authorPhil Reid <preid@electromag.com.au>
Mon, 14 Dec 2015 03:31:59 +0000 (11:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Dec 2015 04:20:56 +0000 (23:20 -0500)
commite34d65696d2ef13dc32f2a162556c86c461ed763
tree5350a94348674da000ffc35acb92efc0c9cf91f2
parent93d085d222de7b8e7c7794dbd800c6a39df2eae2
stmmac: create of compatible mdio bus for stmmac driver

The DSA driver needs to be passed a reference to an mdio bus. Typically
the mac is configured to use a fixed link but the mdio bus still needs
to be registered so that it con configure the switch.
This patch follows the same process as the altera tse ethernet driver for
creation of the mdio bus.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/stmmac.txt
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c