]> git.itanic.dy.fi Git - linux-stable/commitdiff
net: phy: Update documentation for get_rate_matching
authorSean Anderson <sean.anderson@seco.com>
Thu, 29 Dec 2022 20:21:20 +0000 (15:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Jan 2023 11:56:22 +0000 (11:56 +0000)
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: 7642cc28fd37 ("net: phylink: fix PHY validation with rate adaption")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/phy.h

index 71eeb4e3b1fdeda38c8d3badafdfaaa6229ac768..6378c997ded56c9c4c5999a2c45da2c0600614e9 100644 (file)
@@ -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,