Lines Matching +full:max +full:- +full:retries
1 // SPDX-License-Identifier: GPL-2.0+
18 * - Early failures: MII_LPA is just 0x0001. if MII_EXPANSION reports that
21 * - Late failures: MII_LPA is filled with a value which seems to make sense
23 * can detect this using a magic bit in the WOL bank (reg 12 - bit 12).
29 * in some cases, it may take up to 6 retries to get a decent result
33 unsigned int retries = 10; in meson_gxl_startup() local
41 if (phydev->autoneg == AUTONEG_ENABLE) { in meson_gxl_startup()
78 if (!retries) { in meson_gxl_startup()
79 printf("%s LPA corruption max attempts\n", in meson_gxl_startup()
80 phydev->dev->name); in meson_gxl_startup()
81 return -ETIMEDOUT; in meson_gxl_startup()
84 printf("%s LPA corruption - aneg restart\n", in meson_gxl_startup()
85 phydev->dev->name); in meson_gxl_startup()
91 --retries; in meson_gxl_startup()