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/ksz_common.h | |
parent | c14e878d4a4f6f5e1f58e83ac25363a1b80fa374 (diff) | |
download | linux-stable-f597d3ad75b85083f6f129a7ee25da2b67efefce.tar.gz linux-stable-f597d3ad75b85083f6f129a7ee25da2b67efefce.tar.bz2 linux-stable-f597d3ad75b85083f6f129a7ee25da2b67efefce.zip |
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/ksz_common.h')
-rw-r--r-- | drivers/net/dsa/microchip/ksz_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index bf4f3f3922a5..f449feab5499 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -271,6 +271,11 @@ struct ksz_dev_ops { int (*max_mtu)(struct ksz_device *dev, int port); void (*freeze_mib)(struct ksz_device *dev, int port, bool freeze); void (*port_init_cnt)(struct ksz_device *dev, int port); + void (*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); void (*config_cpu_port)(struct dsa_switch *ds); int (*enable_stp_addr)(struct ksz_device *dev); int (*reset)(struct ksz_device *dev); |