]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: remove redunctant disable xPCS EEE call
authorWong Vee Khee <vee.khee.wong@linux.intel.com>
Fri, 15 Jul 2022 12:24:02 +0000 (20:24 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jul 2022 03:15:45 +0000 (20:15 -0700)
commit726439b2b5c1b997a484c96bde903c8141409dfe
tree26b82a1e3c0ff85036ebd892a597f6f8cf4529d5
parent7a4eab22c5193dabe7c0ed50642b2cfcd687910d
net: stmmac: remove redunctant disable xPCS EEE call

Disable is done in stmmac_init_eee() on the event of MAC link down.
Since setting enable/disable EEE via ethtool will eventually trigger
a MAC down, removing this redunctant call in stmmac_ethtool.c to avoid
calling xpcs_config_eee() twice.

Fixes: 2bc4cfd190cf ("net: stmmac: trigger PCS EEE to turn off on link down")
Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Link: https://lore.kernel.org/r/20220715122402.1017470-1-vee.khee.wong@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c