Re: [PATCH v2] net: stmmac: Use msleep rather then udelay for reset delay

2015-09-15 Thread David Miller
From: Sjoerd Simons Date: Fri, 11 Sep 2015 22:25:48 +0200 > 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

[PATCH v2] net: stmmac: Use msleep rather then udelay for reset delay

2015-09-11 Thread Sjoerd Simons
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.