net: asix: see 802.3 spec for phy reset
authorRobert Foss <robert.foss@collabora.com>
Mon, 29 Aug 2016 13:32:18 +0000 (09:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 04:07:06 +0000 (21:07 -0700)
commita243c2efb5774b29f1e0b43240cfcdcabf001497
tree92d3a80effae6466e6ff74ef313679f34a9eebe5
parent4c1442aa8c2c0a2513516aeac184ea172bb04dec
net: asix: see 802.3 spec for phy reset

From: Grant Grundler <grundler@chromium.org>

https://lkml.org/lkml/2014/11/11/947

Ben Hutchings is correct. IEEE 802.3 spec section "22.2.4.1.1 Reset" requires
up to 500ms delay. Mitigate the "max" delay by polling the phy until BCM_RESET
bit is clear.

Signed-off-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Tested-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix_devices.c