]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3159da7c592c92becaff4a2643e8cdb0f32948c
treeaade3f420cf3c5843e8493280286839dc96bb8d7
parentd1e434e54ddb05e00ff9d3d5dd1472ecf22132f2
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