diff options
author | Chaitanya Sakinam <chaitanya.sakinam@nxp.com> | 2020-09-10 16:50:53 +0530 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2020-09-24 20:57:32 +0530 |
commit | 0649ab496a0b40ef96c91c1619b92a4e2360c983 (patch) | |
tree | dd7522df9279ddf8adc45811c03b2743f3c9af1b /drivers | |
parent | b750695ac9a6116626c0d25b4e75c117ec4121b9 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/pfe_eth/pfe_eth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/pfe_eth/pfe_eth.c b/drivers/net/pfe_eth/pfe_eth.c index e49bf4a6f3..b74974c99a 100644 --- a/drivers/net/pfe_eth/pfe_eth.c +++ b/drivers/net/pfe_eth/pfe_eth.c @@ -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; |