r8169: fix RTL8168EP take too long to complete driver initialization.
authorChunhao Lin <hau@realtek.com>
Tue, 30 Jan 2018 17:32:36 +0000 (01:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jan 2018 15:26:30 +0000 (10:26 -0500)
commit086ca23d03c0d2f4088f472386778d293e15c5f6
treeb23a1c50c3e9a176dab970162ed9ae13db69c3c1
parentc0b91a56a2e57a5a370655b25d677ae0ebf8a2d0
r8169: fix RTL8168EP take too long to complete driver initialization.

Driver check the wrong register bit in rtl_ocp_tx_cond() that keep driver
waiting until timeout.

Fix this by waiting for the right register bit.

Signed-off-by: Chunhao Lin <hau@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c