net: phy: marvell: fix m88e1111_set_downshift
authorMaxim Kochetkov <fido_max@inbox.ru>
Thu, 22 Apr 2021 10:46:44 +0000 (13:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:50:42 +0000 (09:50 +0200)
commitbfcb5a8cc7b669a30e3950fc9c2a421e3244dbc8
tree005bfa65b931e1bac3705bd3fe3d3439c8135215
parent1157d01e04d90dde889b6bd5342df33b5db39949
net: phy: marvell: fix m88e1111_set_downshift

[ Upstream commit e7679c55a7249f1315256cfc672d53e84072e223 ]

Changing downshift params without software reset has no effect,
so call genphy_soft_reset() after change downshift params.

As the datasheet says:
Changes to these bits are disruptive to the normal operation therefore,
any changes to these registers must be followed by software reset
to take effect.

Fixes: 5c6bc5199b5d ("net: phy: marvell: add downshift support for M88E1111")
Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/marvell.c