Skip to contentSkip to conversation

net: npcm: Remove superfluous logging

PATCH Applied William A. Kennington III 2 participants 2 messages Mar 31, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: npcm: Remove superfluous logging

Any queries of the ethernet interface will enter the settings functions. This causes dmesg to fill up with unnecessary log entries every time the phy information is queried.

---
 drivers/net/ethernet/nuvoton/npcm7xx_emc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/nuvoton/npcm7xx_emc.c +0 -2
index 3e9b8b68fc55..28aaee3e80ff 100644
@@ -1773,7 +1773,6 @@ static int npcm7xx_get_settings(struct net_device *netdev,
 	if (!phydev)
 		return -ENODEV;
 
-	dev_info(&ether->pdev->dev, "\n\nnpcm7xx_get_settings\n");
 	phy_ethtool_ksettings_get(phydev, cmd);
 
 	return 0;
@@ -1789,7 +1788,6 @@ static int npcm7xx_set_settings(struct net_device *netdev,
 	if (!phydev)
 		return -ENODEV;
 
-	dev_info(&ether->pdev->dev, "\n\nnpcm7xx_set_settings\n");
 	ret =  phy_ethtool_ksettings_set(phydev, cmd);
 
 	return ret;
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
Reviewed-by on v1 1/1 Applied
#1 lore raw
Quoted 6 lines · William A. Kennington III

Any queries of the ethernet interface will enter the settings functions. This causes dmesg to fill up with unnecessary log entries every time the phy information is queried.

I've applied this and the other emc patch to dev-5.10.

Cheers,

Joel

Quoted 27 lines
---
 drivers/net/ethernet/nuvoton/npcm7xx_emc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/nuvoton/npcm7xx_emc.c +0 -3
index 3e9b8b68fc55..28aaee3e80ff 100644
@@ -1773,7 +1773,6 @@ static int npcm7xx_get_settings(struct net_device *netdev,
        if (!phydev)
                return -ENODEV;
 
-       dev_info(&ether->pdev->dev, "\n\nnpcm7xx_get_settings\n");
        phy_ethtool_ksettings_get(phydev, cmd);
 
        return 0;
@@ -1789,7 +1788,6 @@ static int npcm7xx_set_settings(struct net_device *netdev,
        if (!phydev)
                return -ENODEV;
 
-       dev_info(&ether->pdev->dev, "\n\nnpcm7xx_set_settings\n");
        ret =  phy_ethtool_ksettings_set(phydev, cmd);
 
        return ret;
--

2.31.0.291.g576ba9dcdaf-goog