From: Chaitanya Sakinam Date: Thu, 10 Sep 2020 11:20:53 +0000 (+0530) Subject: ls1012a, pfe_eth: correction in delay implementation X-Git-Tag: v2020.10~10^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0649ab496a0b40ef96c91c1619b92a4e2360c983;p=pandora-u-boot.git 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 --- diff --git a/drivers/net/pfe_eth/pfe_eth.c b/drivers/net/pfe_eth/pfe_eth.c index e49bf4a6f3c..b74974c99a5 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;