When setting a PHY's max speed using either the max-speed DT property or ethtool, we should mask-out all non-compatible modes according to the settings table, instead of just the 10/100BASET modes.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -673,6 +673,7 @@ phy_lookup_setting(int speed, int duplex, const unsigned long *mask, · 672 unmodified lines | ||
| 673 | 673 | bool exact); |
| 674 | 674 | size_t phy_speeds(unsigned int *speeds, size_t size, |
| 675 | 675 | unsigned long *mask); |
| 676 | +void of_set_phy_supported(struct phy_device *phydev); | |
| 676 | 677 | |
| 677 | 678 | static inline bool __phy_is_started(struct phy_device *phydev) |
| 678 | 679 | { |