net: phy: realtek: add delay to fix RXC generation issue
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Tue, 8 Jun 2021 03:15:35 +0000 (11:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:44:49 +0000 (09:44 +0200)
commit8a4318c14ace3ecdd2d0b73a84a7f3b334b357bc
tree5ea80757b61e81a2d4424981f9d961ff1f2c8d58
parentc71de31b2e0f4ef71cc69ba841aeac12519b3607
net: phy: realtek: add delay to fix RXC generation issue

[ Upstream commit 6813cc8cfdaf401476e1a007cec8ae338cefa573 ]

PHY will delay about 11.5ms to generate RXC clock when switching from
power down to normal operation. Read/write registers would also cause RXC
become unstable and stop for a while during this process. Realtek engineer
suggests 15ms or more delay can workaround this issue.

Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/realtek.c