mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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:
parent
58524e17b5
commit
98a81200a7
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue