mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-04 20:19:47 +08:00 
			
		
		
		
	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: 656ed8b015 ("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>
			
			
This commit is contained in:
		
							parent
							
								
									590df78bc7
								
							
						
					
					
						commit
						d4aeaed80b
					
				| @ -477,6 +477,10 @@ bool stmmac_eee_init(struct stmmac_priv *priv) | |||||||
| 			stmmac_lpi_entry_timer_config(priv, 0); | 			stmmac_lpi_entry_timer_config(priv, 0); | ||||||
| 			del_timer_sync(&priv->eee_ctrl_timer); | 			del_timer_sync(&priv->eee_ctrl_timer); | ||||||
| 			stmmac_set_eee_timer(priv, priv->hw, 0, eee_tw_timer); | 			stmmac_set_eee_timer(priv, priv->hw, 0, eee_tw_timer); | ||||||
|  | 			if (priv->hw->xpcs) | ||||||
|  | 				xpcs_config_eee(priv->hw->xpcs, | ||||||
|  | 						priv->plat->mult_fact_100ns, | ||||||
|  | 						false); | ||||||
| 		} | 		} | ||||||
| 		mutex_unlock(&priv->lock); | 		mutex_unlock(&priv->lock); | ||||||
| 		return false; | 		return false; | ||||||
| @ -1038,7 +1042,7 @@ static void stmmac_mac_link_down(struct phylink_config *config, | |||||||
| 	stmmac_mac_set(priv, priv->ioaddr, false); | 	stmmac_mac_set(priv, priv->ioaddr, false); | ||||||
| 	priv->eee_active = false; | 	priv->eee_active = false; | ||||||
| 	priv->tx_lpi_enabled = false; | 	priv->tx_lpi_enabled = false; | ||||||
| 	stmmac_eee_init(priv); | 	priv->eee_enabled = stmmac_eee_init(priv); | ||||||
| 	stmmac_set_eee_pls(priv, priv->hw, false); | 	stmmac_set_eee_pls(priv, priv->hw, false); | ||||||
| 
 | 
 | ||||||
| 	if (priv->dma_cap.fpesel) | 	if (priv->dma_cap.fpesel) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Wong Vee Khee
						Wong Vee Khee