ls1012a, pfe_eth: correction in delay implementation

correction in delay implementation before we exit out of tx timeout.

Signed-off-by: Chaitanya Sakinam <chaitanya.sakinam@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
Chaitanya Sakinam 2020-09-10 16:50:53 +05:30 committed by Priyanka Jain
parent b750695ac9
commit 0649ab496a

View File

@ -176,9 +176,10 @@ static int pfe_eth_send(struct udevice *dev, void *packet, int length)
udelay(100);
i++;
if (i == 30000)
if (i == 30000) {
printf("Tx timeout, send failed\n");
break;
break;
}
}
return 0;