dp83640: Ensure against premature access to PHY registers after reset
authorEsben Haabendal <eha@deif.com>
Sun, 8 Apr 2018 20:17:01 +0000 (22:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:50:40 +0000 (07:50 +0200)
commitbb928fbe0f05d98570f6d10b5ab2961323ed1f89
tree31c22921bc08924f31be1a93d482de5b7bc68c59
parent707f25a21d617cae6e3b42811f3e3a108026f31d
dp83640: Ensure against premature access to PHY registers after reset

[ Upstream commit 76327a35caabd1a932e83d6a42b967aa08584e5d ]

The datasheet specifies a 3uS pause after performing a software
reset. The default implementation of genphy_soft_reset() does not
provide this, so implement soft_reset with the needed pause.

Signed-off-by: Esben Haabendal <eha@deif.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/dp83640.c