]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: Add support for reading PHY statistics
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 25 Apr 2018 19:12:53 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 15:53:03 +0000 (11:53 -0400)
commitcde83d437eb9eb4cb30acc4f47910aa14cddf652
treedcbbd688e355d46906570891067a287e6faaa640
parent9cdd39e72af1b0e887a704d0d0010e53e380310b
net: dsa: b53: Add support for reading PHY statistics

Allow the b53 driver to return PHY statistics when the CPU port used is
different than 5, 7 or 8, because those are typically PHY-less on most
devices. This is useful for debugging link problems between the switch
and an external host when using a non standard CPU port number (e.g: 4).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/b53/b53_priv.h
drivers/net/dsa/bcm_sf2.c