diff options
author | Tristram Ha <Tristram.Ha@microchip.com> | 2019-02-23 03:36:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-25 04:49:59 +0300 |
commit | c30d894b6a6a2d1c7ea47d06e6ad4fb5cf0b4999 (patch) | |
tree | aade3f420cf3c5843e8493280286839dc96bb8d7 /drivers/net/dsa/microchip/ksz9477.c | |
parent | 7c6ff470aa867f53b8522a3a5c84c36ac7a20090 (diff) | |
download | linux-c30d894b6a6a2d1c7ea47d06e6ad4fb5cf0b4999.tar.xz |
net: dsa: microchip: get port link status
Get port link status to know whether to read MIB counters when the link
is going down.
Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz9477.c')
-rw-r--r-- | drivers/net/dsa/microchip/ksz9477.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz9477.c b/drivers/net/dsa/microchip/ksz9477.c index 94cd38515ab8..1b8267c8177f 100644 --- a/drivers/net/dsa/microchip/ksz9477.c +++ b/drivers/net/dsa/microchip/ksz9477.c @@ -1196,6 +1196,7 @@ static const struct dsa_switch_ops ksz9477_switch_ops = { .setup = ksz9477_setup, .phy_read = ksz9477_phy_read16, .phy_write = ksz9477_phy_write16, + .adjust_link = ksz_adjust_link, .port_enable = ksz_enable_port, .port_disable = ksz_disable_port, .get_strings = ksz9477_get_strings, |