]> git.ipfire.org Git - people/ms/linux.git/commit - drivers/net/phy/marvell.c
net: phy: marvell: fix m88e1111_set_downshift
authorMaxim Kochetkov <fido_max@inbox.ru>
Thu, 22 Apr 2021 10:46:44 +0000 (13:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Apr 2021 20:20:39 +0000 (13:20 -0700)
commite7679c55a7249f1315256cfc672d53e84072e223
treeb6e73b44c1f6f03db7efe8d4540cc599df26a3d8
parent990875b299b8612aeb85cb2e2751796f1add65ff
net: phy: marvell: fix m88e1111_set_downshift

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>
drivers/net/phy/marvell.c