Re: [PATCH net-next 3/4] dpaa2-eth: add MAC/PHY support through phylink

2019-10-22 Thread Russell King - ARM Linux admin
On Tue, Oct 22, 2019 at 03:06:49AM +0200, Andrew Lunn wrote: > Hi Ioana > > > +static int dpaa2_eth_connect_mac(struct dpaa2_eth_priv *priv) > > +{ > > + struct fsl_mc_device *dpni_dev, *dpmac_dev; > > + struct dpaa2_mac *mac; > > + int err; > > + > > + dpni_dev = to_fsl_mc_device(priv->ne

RE: [PATCH net-next 3/4] dpaa2-eth: add MAC/PHY support through phylink

2019-10-22 Thread Ioana Ciornei
> Hi Ioana > Hi Andrew > > +static int dpaa2_eth_connect_mac(struct dpaa2_eth_priv *priv) { > > + struct fsl_mc_device *dpni_dev, *dpmac_dev; > > + struct dpaa2_mac *mac; > > + int err; > > + > > + dpni_dev = to_fsl_mc_device(priv->net_dev->dev.parent); > > + dpmac_dev = fsl_mc_get_end

RE: [PATCH net-next 3/4] dpaa2-eth: add MAC/PHY support through phylink

2019-10-22 Thread Ioana Ciornei
> Subject: Re: [PATCH net-next 3/4] dpaa2-eth: add MAC/PHY support through > phylink > > On Tue, Oct 22, 2019 at 01:50:27AM +0300, Ioana Ciornei wrote: > > + mac->phylink_config.dev = &net_dev->dev; > > + mac->phylink_config.type = PHYLINK_NETDEV; > &

Re: [PATCH net-next 3/4] dpaa2-eth: add MAC/PHY support through phylink

2019-10-22 Thread Russell King - ARM Linux admin
On Tue, Oct 22, 2019 at 01:50:27AM +0300, Ioana Ciornei wrote: > + mac->phylink_config.dev = &net_dev->dev; > + mac->phylink_config.type = PHYLINK_NETDEV; > + > + phylink = phylink_create(&mac->phylink_config, > + of_fwnode_handle(dpmac_node), mac->if_mode,

Re: [PATCH net-next 3/4] dpaa2-eth: add MAC/PHY support through phylink

2019-10-22 Thread kbuild test robot
Hi Ioana, I love your patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Ioana-Ciornei/dpaa2-eth-add-MAC-PHY-support-through-phylink/20191022-075637 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.g

Re: [PATCH net-next 3/4] dpaa2-eth: add MAC/PHY support through phylink

2019-10-21 Thread Andrew Lunn
Hi Ioana > +static int dpaa2_eth_connect_mac(struct dpaa2_eth_priv *priv) > +{ > + struct fsl_mc_device *dpni_dev, *dpmac_dev; > + struct dpaa2_mac *mac; > + int err; > + > + dpni_dev = to_fsl_mc_device(priv->net_dev->dev.parent); > + dpmac_dev = fsl_mc_get_endpoint(dpni_dev);

[PATCH net-next 3/4] dpaa2-eth: add MAC/PHY support through phylink

2019-10-21 Thread Ioana Ciornei
The dpaa2-eth driver now has support for connecting to its associated PHY device found through standard OF bindings. This happens when the DPNI object (that the driver probes on) gets connected to a DPMAC. When that happens, the device tree is looked up by the DPMAC ID, and the associated PHY bind