]> 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)
commitd4aeaed80b0ebb020fadf2073b23462928dbdc17
tree18d057d9ef56370155a3c57812774d825e622fd7
parent590df78bc7d1d0425196a8e11ce6676d7023fb26
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: 656ed8b015f1 ("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