arm64: dts: clearfog-gt-8k: set gigabit PHY reset deassert delay
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 25 Feb 2020 11:45:12 +0000 (11:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:36:30 +0000 (10:36 +0200)
commit1e7abaf24875353260007b7b036691612661f360
tree37ca64de38fc22a7f54b4fa5db8517443f07abe9
parentd7b59cd020f73c36b58dd504a302e70fe3e0ec96
arm64: dts: clearfog-gt-8k: set gigabit PHY reset deassert delay

[ Upstream commit 46f94c7818e7ab82758fca74935ef3d454340b4e ]

If the mv88e6xxx DSA driver is built as a module, it causes the
ethernet driver to re-probe when it's loaded. This in turn causes
the gigabit PHY to be momentarily reset and reprogrammed. However,
we attempt to reprogram the PHY immediately after deasserting reset,
and the PHY ignores the writes.

This results in the PHY operating in the wrong mode, and the copper
link states down.

Set a reset deassert delay of 10ms for the gigabit PHY to avoid this.

Fixes: babc5544c293 ("arm64: dts: clearfog-gt-8k: 1G eth PHY reset signal")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts