mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
ftgmac100: Increase reset timeout
We had reports of 50us not being sufficient to reset the MAC, thus hitting the "Hardware reset failed" error bringing the interface up on some AST2400 based machines. This bumps the timeout to 200us. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
69ec932e36
commit
c7472ec4a0
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ static int ftgmac100_reset_mac(struct ftgmac100 *priv, u32 maccr)
|
|||
iowrite32(maccr, priv->base + FTGMAC100_OFFSET_MACCR);
|
||||
iowrite32(maccr | FTGMAC100_MACCR_SW_RST,
|
||||
priv->base + FTGMAC100_OFFSET_MACCR);
|
||||
for (i = 0; i < 50; i++) {
|
||||
for (i = 0; i < 200; i++) {
|
||||
unsigned int maccr;
|
||||
|
||||
maccr = ioread32(priv->base + FTGMAC100_OFFSET_MACCR);
|
||||
|
|
Loading…
Reference in a new issue