Re: [PATCH v3 1/4] stmmac: create of compatible mdio bus for stmacc driver

2015-12-08 Thread Tobias Klauser
On 2015-12-08 at 10:35:05 +0100, Arnd Bergmann wrote: > On Tuesday 08 December 2015 13:12:59 Phil Reid wrote: > > > @@ -201,6 +201,25 @@ int stmmac_mdio_register(struct net_device *ndev) > > struct stmmac_mdio_bus_data *mdio_bus_data = priv->plat->mdio_bus_data; > > int addr, found; > >

Re: [PATCH v3 1/4] stmmac: create of compatible mdio bus for stmacc driver

2015-12-08 Thread Arnd Bergmann
On Tuesday 08 December 2015 13:12:59 Phil Reid wrote: > @@ -201,6 +201,25 @@ int stmmac_mdio_register(struct net_device *ndev) > struct stmmac_mdio_bus_data *mdio_bus_data = priv->plat->mdio_bus_data; > int addr, found; > > +#ifdef CONFIG_OF > + struct device_node *mdio_node = NU

[PATCH v3 1/4] stmmac: create of compatible mdio bus for stmacc driver

2015-12-07 Thread Phil Reid
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. A