Home
last modified time | relevance | path

Searched refs:i2c_mii (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/net/phy/
Dsfp.c223 struct mii_bus *i2c_mii; member
573 struct mii_bus *i2c_mii; in sfp_i2c_mdiobus_create() local
576 i2c_mii = mdio_i2c_alloc(sfp->dev, sfp->i2c, sfp->mdio_protocol); in sfp_i2c_mdiobus_create()
577 if (IS_ERR(i2c_mii)) in sfp_i2c_mdiobus_create()
578 return PTR_ERR(i2c_mii); in sfp_i2c_mdiobus_create()
580 i2c_mii->name = "SFP I2C Bus"; in sfp_i2c_mdiobus_create()
581 i2c_mii->phy_mask = ~0; in sfp_i2c_mdiobus_create()
583 ret = mdiobus_register(i2c_mii); in sfp_i2c_mdiobus_create()
585 mdiobus_free(i2c_mii); in sfp_i2c_mdiobus_create()
589 sfp->i2c_mii = i2c_mii; in sfp_i2c_mdiobus_create()
[all …]