Skip to content

Commit 972074e

Browse files
oleremkuba-moo
authored andcommitted
net: phy: c45: fix network interface initialization failures on xtensa, arm:cubieboard
Without proper initialization, "changed" returned random numbers and caused interface initialization failures. Fixes: 022c3f8 ("net: phy: add genphy_c45_ethtool_get/set_eee() support") Reported-by: Guenter Roeck <[email protected]> Tested-by: Guenter Roeck <[email protected]> Signed-off-by: Oleksij Rempel <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ccf8f7d commit 972074e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/phy-c45.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ EXPORT_SYMBOL_GPL(genphy_c45_read_mdix);
672672
*/
673673
int genphy_c45_write_eee_adv(struct phy_device *phydev, unsigned long *adv)
674674
{
675-
int val, changed;
675+
int val, changed = 0;
676676

677677
if (linkmode_intersects(phydev->supported_eee, PHY_EEE_CAP1_FEATURES)) {
678678
val = linkmode_to_mii_eee_cap1_t(adv);

0 commit comments

Comments
 (0)