]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: Export phylink_caps_to_linkmodes
authorSean Anderson <sean.anderson@seco.com>
Tue, 20 Sep 2022 22:12:29 +0000 (18:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2022 10:55:35 +0000 (11:55 +0100)
commit88230122f323281a45b2acabdd199abb62628681
treed428fa797bd1647e033aeaeb0c270090d2e66fcd
parentf650fe2ee64ec8162c826e9d56f42742bb991a50
net: phylink: Export phylink_caps_to_linkmodes

This function is convenient for MAC drivers. They can use it to add or
remove particular link modes based on capabilities (such as if half
duplex is not supported for a particular interface mode).

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
include/linux/phylink.h