MIPS: qca956x: Fix AP151 and AP152 target ping issues

This change fixes the ping issue on the AP151 and AP152
targets. The issue happens when ping is attempted for
more than one time on the same port either LAN or WAN.

Change-Id: Iad8b0da3ef15bdf12f73645625167f0ff5106df0
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
This commit is contained in:
Prabhu Jayakumar 2017-01-27 10:23:45 +05:30
parent 58524e17b5
commit 98a81200a7

View file

@ -434,7 +434,7 @@ static int ath_gmac_check_link(ath_gmac_mac_t *mac)
if(!mac->link) {
printf("%s link down\n",mac->dev->name);
return 1;
return 0;
}
switch (speed)
@ -485,7 +485,7 @@ static int ath_gmac_check_link(ath_gmac_mac_t *mac)
ath_gmac_set_mac_duplex(mac,duplex);
return 0;
return 1;
}
/*
@ -498,7 +498,7 @@ static int ath_gmac_clean_rx(struct eth_device *dev, bd_t * bd)
ath_gmac_desc_t *fr;
ath_gmac_mac_t *mac = (ath_gmac_mac_t*)dev->priv;
if (ath_gmac_check_link(mac)) {
if (!ath_gmac_check_link(mac)) {
return -1;
}