]> 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)
commitbacc87dbfa3e62b0b2471830e11b64d9e5508cff
tree5350a94348674da000ffc35acb92efc0c9cf91f2
parent8b7418536a6fbe5f4ed685bb128f794942b8724e
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