diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index f63e93f978a381..a253e8df9ef0c2 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -731,7 +731,7 @@ static void ag71xx_sgmii_init_qca955x(struct device_node *np) pr_err("ag71xx: max retries for SGMII fixup exceeded\n"); break; } - } while (!(sgmii_status == 0xf || sgmii_status == 0x10)); + } while (!(sgmii_status == 0x1f || sgmii_status == 0x10)); sgmii_out: iounmap(gmac_base);