mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
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:
parent
b750695ac9
commit
0649ab496a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user