Skip to content

Commit 517dc04

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
net: stmmac: report EEE error statistics if EEE is supported
Report the number of EEE error statistics in the xstats even when EEE is not enabled in hardware, but is supported. The PHY maintains this counter even when EEE is not enabled. Reviewed-by: Andrew Lunn <[email protected]> Tested-by: Choong Yong Liang <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 865ff41 commit 517dc04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ static void stmmac_get_ethtool_stats(struct net_device *dev,
654654
(*(u32 *)p);
655655
}
656656
}
657-
if (priv->eee_enabled) {
657+
if (priv->dma_cap.eee) {
658658
int val = phylink_get_eee_err(priv->phylink);
659659
if (val)
660660
priv->xstats.phy_eee_wakeup_error_n = val;

0 commit comments

Comments
 (0)