net: phy: c45: fix network interface initialization failures on xtensa, arm:cubieboard
authorOleksij Rempel <o.rempel@pengutronix.de>
Sat, 25 Feb 2023 07:16:44 +0000 (08:16 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 27 Feb 2023 19:41:49 +0000 (11:41 -0800)
commit972074ea88402e9b1b29c3a8d3d6d1aadaff624e
tree414159fabb10385e05b4b51931e9cc77592730d3
parentccf8f7d71424ce37394c8333482853dba4f33978
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: 022c3f87f88e ("net: phy: add genphy_c45_ethtool_get/set_eee() support")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230225071644.2754893-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy-c45.c