return -EOPNOTSUPP;
}
}
+
+ #else /* !defined(CONFIG_M5272) */
+ #define FEC_STATS_SIZE 0
+ static inline void fec_enet_update_ethtool_stats(struct net_device *dev)
+ {
+ }
#endif /* !defined(CONFIG_M5272) */
-static int fec_enet_nway_reset(struct net_device *dev)
-{
- struct phy_device *phydev = dev->phydev;
-
- if (!phydev)
- return -ENODEV;
-
- return genphy_restart_aneg(phydev);
-}
-
/* ITR clock source is enet system clock (clk_ahb).
* TCTT unit is cycle_ns * 64 cycle
* So, the ICTT value = X us / (cycle_ns * 64)