net: phy: at803x: add downshift support
authorMichael Walle <michael@walle.cc>
Tue, 28 Apr 2020 21:15:02 +0000 (23:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 03:54:10 +0000 (20:54 -0700)
commitcde0f4f81d1c11ccc214146e1c550bfe48629fac
tree9b4460d113b4360f80420f7c4f19af77b728cb8e
parent838974e1e08a9724525fa13ef15d6e021c23c99d
net: phy: at803x: add downshift support

The AR8031 and AR8035 support the link speed downshift. Add driver
support for it. One peculiarity of these PHYs is that it needs a
software reset after changing the setting, thus add the .soft_reset()
op and do a phy_init_hw() if necessary.

This was tested on a custom board with the AR8031.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c