u16 rx_ring_size;
phy_interface_t phy_interface;
- bool fixed_link;
unsigned int link;
unsigned int duplex;
unsigned int speed;
mvreg_write(pp, MVNETA_SDMA_CONFIG, val);
/* Enable PHY polling in hardware if not in fixed-link mode */
- if (!pp->fixed_link) {
+ if (pp->phydev->phy_id != PHY_FIXED_ID) {
mvreg_write(pp, MVNETA_PHY_ADDR, pp->phydev->addr);
val = mvreg_read(pp, MVNETA_UNIT_CONTROL);
* be added). Also, why is ADVERT_FC enabled if we don't enable
* inband AN at all?
*/
- if (pp->fixed_link)
+ if (pp->phydev->phy_id == PHY_FIXED_ID)
val = MVNETA_GMAC_FORCE_LINK_UP |
MVNETA_GMAC_IB_BYPASS_AN_EN |
MVNETA_GMAC_SET_FC_EN |
return -ENODEV;
}
- pp->fixed_link = phydev->phy_id == PHY_FIXED_ID;
-
pp->phydev = phydev;
phy_config(phydev);
phy_startup(phydev);