return -ENODEV;
 
        e->tx_lpi_enabled = p->tx_lpi_enabled;
-       e->tx_lpi_timer = umac_rl(intf, UMC_EEE_LPI_TIMER);
 
        return phy_ethtool_get_eee(dev->phydev, e);
 }
                        return ret;
                }
 
-               umac_wl(intf, e->tx_lpi_timer, UMC_EEE_LPI_TIMER);
                intf->eee.tx_lpi_enabled = e->tx_lpi_enabled;
                bcmasp_eee_enable_set(intf, true);
        }
 
                }
                umac_wl(intf, reg, UMC_CMD);
 
+               umac_wl(intf, phydev->eee_cfg.tx_lpi_timer, UMC_EEE_LPI_TIMER);
+
                active = phy_init_eee(phydev, 0) >= 0;
                bcmasp_eee_enable_set(intf, active);
        }
 
                /* Indicate that the MAC is responsible for PHY PM */
                phydev->mac_managed_pm = true;
+
+               /* Set phylib's copy of the LPI timer */
+               phydev->eee_cfg.tx_lpi_timer = umac_rl(intf, UMC_EEE_LPI_TIMER);
        }
 
        umac_reset(intf);