]> git.dujemihanovic.xyz Git - linux.git/commit
net: phy: c45: use "supported_eee" instead of supported for access validation
authorOleksij Rempel <o.rempel@pengutronix.de>
Wed, 22 Feb 2023 05:50:40 +0000 (06:50 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 23 Feb 2023 12:43:23 +0000 (13:43 +0100)
commite209519b623391465c0b37caca89bf0ffff91f53
tree0601b51669a77dd6b50cd050331d3b1bf364a35b
parentc749e3f82a15e10a798bb55f60368ee102c793cb
net: phy: c45: use "supported_eee" instead of supported for access validation

Make sure we use proper variable to validate access to potentially not
supported registers. Otherwise we will get false read/write errors.

Reported-by: kernel test robot <yujie.liu@intel.com>
Link: https://lore.kernel.org/oe-lkp/202302211644.c12d19de-yujie.liu@intel.com
Fixes: 022c3f87f88e ("net: phy: add genphy_c45_ethtool_get/set_eee() support")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/phy-c45.c