diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-02-15 15:49:27 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-16 19:39:44 -0800 |
commit | a87ae8a963bde755b0962bcc18db83d611f63e7a (patch) | |
tree | 9fa705afcdce8ca1555396d433e68b1ac918ed7a /drivers/net/phy/Makefile | |
parent | 8062e2333f8f7dcd5627e22b99e18d1cbb53eedb (diff) | |
download | linux-a87ae8a963bde755b0962bcc18db83d611f63e7a.tar.gz linux-a87ae8a963bde755b0962bcc18db83d611f63e7a.tar.bz2 linux-a87ae8a963bde755b0962bcc18db83d611f63e7a.zip |
net: add helpers to resolve negotiated flow control
Add a couple of helpers to resolve negotiated flow control. Two helpers
are provided:
- linkmode_resolve_pause() which takes the link partner and local
advertisements, and decodes whether we should enable TX or RX pause
at the MAC. This is useful outside of phylib, e.g. in phylink.
- phy_get_pause(), which returns the TX/RX enablement status for the
current negotiation results of the PHY.
This allows us to centralise the flow control resolution, rather than
spreading it around.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/Makefile')
-rw-r--r-- | drivers/net/phy/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile index fe5badf13b65..d523fd5670e4 100644 --- a/drivers/net/phy/Makefile +++ b/drivers/net/phy/Makefile @@ -1,7 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 # Makefile for Linux PHY drivers and MDIO bus drivers -libphy-y := phy.o phy-c45.o phy-core.o phy_device.o +libphy-y := phy.o phy-c45.o phy-core.o phy_device.o \ + linkmode.o mdio-bus-y += mdio_bus.o mdio_device.o ifdef CONFIG_MDIO_DEVICE |