Skip to content

Commit

Permalink
net: phy: Update documentation for get_rate_matching
Browse files Browse the repository at this point in the history
Now that phylink no longer calls phy_get_rate_matching with
PHY_INTERFACE_MODE_NA, phys no longer need to support it. Remove the
documentation mandating support.

Fixes: 7642cc2 ("net: phylink: fix PHY validation with rate adaption")
Signed-off-by: Sean Anderson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sean-anderson-seco authored and davem330 committed Jan 1, 2023
1 parent d02b825 commit 6d4cfcf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/linux/phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -826,10 +826,7 @@ struct phy_driver {
* whether to advertise lower-speed modes for that interface. It is
* assumed that if a rate matching mode is supported on an interface,
* then that interface's rate can be adapted to all slower link speeds
* supported by the phy. If iface is %PHY_INTERFACE_MODE_NA, and the phy
* supports any kind of rate matching for any interface, then it must
* return that rate matching mode (preferring %RATE_MATCH_PAUSE to
* %RATE_MATCH_CRS). If the interface is not supported, this should
* supported by the phy. If the interface is not supported, this should
* return %RATE_MATCH_NONE.
*/
int (*get_rate_matching)(struct phy_device *phydev,
Expand Down

0 comments on commit 6d4cfcf

Please sign in to comment.