]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb49c66f92f3f09995f931a39b2e580d8e9f77c6d
tree5350a94348674da000ffc35acb92efc0c9cf91f2
parentc0352ec5b929a59269f359f19160ee7b09e4c084
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