nuc472_eth: fix alignment

pull/12839/head
Martin Kojtal 2020-04-24 14:16:21 +01:00 committed by GitHub
parent bc497a1742
commit 36dada2e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ static int reset_phy(void)
delayCnt = 2000;
while(delayCnt > 0) {
delayCnt--;
delayCnt--;
if((mdio_read(CONFIG_PHY_ADDR, MII_BMCR) & BMCR_RESET) == 0)
break;
@ -101,7 +101,7 @@ static int reset_phy(void)
delayCnt = 200000;
while(delayCnt > 0) {
delayCnt--;
delayCnt--;
if((mdio_read(CONFIG_PHY_ADDR, MII_BMSR) & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS))
== (BMSR_ANEGCOMPLETE | BMSR_LSTATUS))
break;