History

net: phy: Mask-out non-compatible modes when setting the max-speed

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.

Maxime Chevallier committed 7 years ago

Commit a4eaed91 parent d2d37443 files · +46 −53Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/phy.h+1−0
@@ -673,6 +673,7 @@ phy_lookup_setting(int speed, int duplex, const unsigned long *mask, · 672 unmodified lines
673 bool exact);673 bool exact);
674size_t phy_speeds(unsigned int *speeds, size_t size,674size_t phy_speeds(unsigned int *speeds, size_t size,
675 unsigned long *mask);675 unsigned long *mask);
676void of_set_phy_supported(struct phy_device *phydev);
676 677
677static inline bool __phy_is_started(struct phy_device *phydev)678static inline bool __phy_is_started(struct phy_device *phydev)
678{679{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t