net: phy: dp83867: Set FORCE_LINK_GOOD to default after reset
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Thu, 16 Jan 2020 13:16:31 +0000 (14:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:22:50 +0000 (08:22 +0100)
commit8af8396c271952c3087617f9bf9bcc836b1d9f09
treea44056c57ca156f1f1233285da9da256f17a43b3
parent8c642ca6d74160ce8057ab905595f0d05eecc555
net: phy: dp83867: Set FORCE_LINK_GOOD to default after reset

[ Upstream commit 86ffe920e669ec73035e84553e18edf17d16317c ]

According to the Datasheet this bit should be 0 (Normal operation) in
default. With the FORCE_LINK_GOOD bit set, it is not possible to get a
link. This patch sets FORCE_LINK_GOOD to the default value after
resetting the phy.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/dp83867.c