]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: trigger PCS EEE to turn off on link down
authorWong Vee Khee <vee.khee.wong@linux.intel.com>
Tue, 5 Oct 2021 11:51:00 +0000 (19:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2021 10:18:27 +0000 (11:18 +0100)
commit2bc4cfd190cf7a11207c772e71825f7abedd0ed3
tree18d057d9ef56370155a3c57812774d825e622fd7
parent094a30f15a92fe6e33ed433b36cdb121918ec7b7
net: stmmac: trigger PCS EEE to turn off on link down

The current implementation enable PCS EEE feature in the event of link
up, but PCS EEE feature is not disabled on link down.

This patch makes sure PCE EEE feature is disabled on link down.

Fixes: a90e014895d4 ("net: stmmac: fix EEE init issue when paired with EEE capable PHYs")
Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c