On Fri, Sep 06, 2019 at 05:15:42PM +0300, Claudiu Manoil wrote: > +int enetc_imdio_init(struct enetc_pf *pf) > +{ > + struct device *dev = &pf->si->pdev->dev; > + struct enetc_mdio_priv *mdio_priv; > + struct mii_bus *bus; > + int err; > + > + bus = devm_mdiobus_alloc_size(dev, sizeof(*mdio_priv)); > + if (!bus) > + return -ENOMEM; > + > + bus->name = "FSL ENETC internal MDIO Bus"; > + bus->read = enetc_mdio_read; > + bus->write = enetc_mdio_write; > + bus->parent = dev;
Hi Claudiu Since you don't expect any PHYs to be on this bus, maybe you should set bus->phy_mask; Andrew