commit | 892aa01df2ad67237f213c8f9d9b491e908aa910 | [log] [tgz] |
---|---|---|
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | Fri Sep 11 22:25:48 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Sep 15 15:05:29 2015 -0700 |
tree | 0ddc733238973be59b456796df311382140cde09 | |
parent | d64f69b0373a7d0bcec8b5da7712977518a8f42b [diff] |
net: stmmac: Use msleep rather then udelay for reset delay The reset delays used for stmmac are in the order of 10ms to 1 second, which is far too long for udelay usage, so switch to using msleep. Practically this fixes the PHY not being reliably detected in some cases as udelay wouldn't actually delay for long enough to let the phy reliably be reset. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>