net: phy: vitesse: Add support for VSC73xx
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 30 Jun 2018 11:17:30 +0000 (13:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 02:30:02 +0000 (11:30 +0900)
commit975ae7c69d51154fccd7024d2e7f0347c34c6f72
tree80f0754e61f0d903df997a873778968112514e90
parent1decd2ec22b91fc4ea360ddc5cc21811cd64bd68
net: phy: vitesse: Add support for VSC73xx

The VSC7385, VSC7388, VSC7395 and VSC7398 are integrated
switch/router chips for 5+1 or 8-port switches/routers. When
managed directly by Linux using DSA we need to do a special
set-up "dance" on the PHY. Unfortunately these sequences
switches the PHY to undocumented pages named 2a30 and 52b6
and does undocumented things. It is described by these opaque
sequences also in the reference manual. This is a best
effort to integrate it anyways.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/vitesse.c