Commit 0649ab49 authored by Chaitanya Sakinam's avatar Chaitanya Sakinam Committed by Priyanka Jain
Browse files

ls1012a, pfe_eth: correction in delay implementation



correction in delay implementation before we exit out of tx timeout.
Signed-off-by: default avatarChaitanya Sakinam <chaitanya.sakinam@nxp.com>
Reviewed-by: default avatarPriyanka Jain <priyanka.jain@nxp.com>
parent b750695a
...@@ -176,9 +176,10 @@ static int pfe_eth_send(struct udevice *dev, void *packet, int length) ...@@ -176,9 +176,10 @@ static int pfe_eth_send(struct udevice *dev, void *packet, int length)
udelay(100); udelay(100);
i++; i++;
if (i == 30000) if (i == 30000) {
printf("Tx timeout, send failed\n"); printf("Tx timeout, send failed\n");
break; break;
}
} }
return 0; return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment