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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 18:41:24 +0000 (11:41 -0700)
commit6813cc8cfdaf401476e1a007cec8ae338cefa573
tree1c2c1b0943586e65847584348ff36080c61648d6
parentd90db36a9e748c9d886df15f5e17b341f0e5bcd5
net: phy: realtek: add delay to fix RXC generation issue

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