diff options
author | Arun Ramadoss <arun.ramadoss@microchip.com> | 2022-07-01 20:41:24 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-02 16:34:05 +0100 |
commit | f597d3ad75b85083f6f129a7ee25da2b67efefce (patch) | |
tree | 798d0d5ece5f38bd110e25c6b78e68965c9d6aaf /drivers/net/dsa/microchip/lan937x.h | |
parent | c14e878d4a4f6f5e1f58e83ac25363a1b80fa374 (diff) |
net: dsa: microchip: lan937x: add phylink_mac_link_up support
This patch add support for phylink_mac_link_up. It configures the mac
for the speed, flow control and duplex mode.
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/lan937x.h')
-rw-r--r-- | drivers/net/dsa/microchip/lan937x.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/lan937x.h b/drivers/net/dsa/microchip/lan937x.h index d4207e97a130..145770aec963 100644 --- a/drivers/net/dsa/microchip/lan937x.h +++ b/drivers/net/dsa/microchip/lan937x.h @@ -17,4 +17,8 @@ void lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val); int lan937x_change_mtu(struct ksz_device *dev, int port, int new_mtu); void lan937x_phylink_get_caps(struct ksz_device *dev, int port, struct phylink_config *config); +void lan937x_phylink_mac_link_up(struct ksz_device *dev, int port, + unsigned int mode, phy_interface_t interface, + struct phy_device *phydev, int speed, + int duplex, bool tx_pause, bool rx_pause); #endif |