Re: [PATCH net-next 3/3] dpaa2-mac: add PCS support through the Lynx module

2020-09-21 Thread Ioana Ciornei
On Mon, Sep 21, 2020 at 07:07:21PM +0200, Andrew Lunn wrote: > On Mon, Sep 21, 2020 at 07:20:31PM +0300, Ioana Ciornei wrote: > > +static void dpaa2_pcs_destroy(struct dpaa2_mac *mac) > > +{ > > + struct lynx_pcs *pcs = mac->pcs; > > + > > + if (pcs) { > > + put_device(&pcs->mdio->dev

Re: [PATCH net-next 3/3] dpaa2-mac: add PCS support through the Lynx module

2020-09-21 Thread Andrew Lunn
On Mon, Sep 21, 2020 at 07:20:31PM +0300, Ioana Ciornei wrote: > +static void dpaa2_pcs_destroy(struct dpaa2_mac *mac) > +{ > + struct lynx_pcs *pcs = mac->pcs; > + > + if (pcs) { > + put_device(&pcs->mdio->dev); > + lynx_pcs_destroy(pcs); > + mac->pcs =

[PATCH net-next 3/3] dpaa2-mac: add PCS support through the Lynx module

2020-09-21 Thread Ioana Ciornei
Include PCS support in the dpaa2-eth driver by integrating it with the new Lynx PCS module. There is not much to talk about in terms of changes needed in the dpaa2-eth driver since the only steps necessary are to find the MDIO device representing the PCS, register it to the Lynx PCS module and then