static int ks8051_config_init(struct phy_device *phydev) { int rc; rc = ksz_config_flags(phydev); return rc < 0 ? rc : 0; }
static int ksz8021_config_init(struct phy_device *phydev) { int rc; const u16 val = KSZPHY_OMSO_B_CAST_OFF | KSZPHY_OMSO_RMII_OVERRIDE; phy_write(phydev, MII_KSZPHY_OMSO, val); rc = ksz_config_flags(phydev); return rc < 0 ? rc : 0; }
static int ks8051_config_init(struct phy_device *phydev) { int rc; rc = kszphy_setup_led(phydev, 0x1f, 4); if (rc) dev_err(&phydev->dev, "failed to set led mode\n"); rc = ksz_config_flags(phydev); return rc < 0 ? rc : 0; }
static int ksz8021_config_init(struct phy_device *phydev) { const u16 val = KSZPHY_OMSO_B_CAST_OFF | KSZPHY_OMSO_RMII_OVERRIDE; int rc; rc = kszphy_setup_led(phydev, 0x1f, 4); if (rc) dev_err(&phydev->dev, "failed to set led mode\n"); phy_write(phydev, MII_KSZPHY_OMSO, val); rc = ksz_config_flags(phydev); return rc < 0 ? rc : 0; }