From 0649ab496a0b40ef96c91c1619b92a4e2360c983 Mon Sep 17 00:00:00 2001 From: Chaitanya Sakinam Date: Thu, 10 Sep 2020 16:50:53 +0530 Subject: ls1012a, pfe_eth: correction in delay implementation correction in delay implementation before we exit out of tx timeout. Signed-off-by: Chaitanya Sakinam Reviewed-by: Priyanka Jain --- drivers/net/pfe_eth/pfe_eth.c | 5 +++-- 1 file 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; -- cgit