OSDN Git Service

net: dsa: microchip: get port link status
authorTristram Ha <Tristram.Ha@microchip.com>
Sat, 23 Feb 2019 00:36:49 +0000 (16:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 01:49:59 +0000 (17:49 -0800)
commitc30d894b6a6a2d1c7ea47d06e6ad4fb5cf0b4999
treeaade3f420cf3c5843e8493280286839dc96bb8d7
parent7c6ff470aa867f53b8522a3a5c84c36ac7a20090
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>
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h