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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Feb 2018 11:35:56 +0000 (12:35 +0100)
commit5db5cabbf09dd793bf42e65cea9abe66fad62c13
treed373dd3137f92c0c2328677685f7565ebfe9a1bf
parent9f2f873d5a1c3f6b22b18db0e4c9f3a30164b8f0
r8169: fix RTL8168EP take too long to complete driver initialization.

[ Upstream commit 086ca23d03c0d2f4088f472386778d293e15c5f6 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/r8169.c