Skip to contentSkip to conversation

net/nuc900: change dev_warn to dev_dbg when link down occurs

PATCH In review Wan ZongShun 2 participants 2 messages Oct 15, 2010 – Oct 21, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/nuc900: change dev_warn to dev_dbg when link down occurs

Hi David,

When I didnot connect the net cable, the warning infos are always showed, so I change the dev_warn to dev_dbg.

---
 drivers/net/arm/w90p910_ether.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/arm/w90p910_ether.c +1 -1
index 4545d5a..98f8ada 100644
@@ -213,7 +213,7 @@ static void update_linkspeed(struct net_device *dev)
 	if (!mii_link_ok(&ether->mii)) {
 		ether->linkflag = 0x0;
 		netif_carrier_off(dev);
-		dev_warn(&pdev->dev, "%s: Link down.\n", dev->name);
+		dev_dbg(&pdev->dev, "%s: Link down.\n", dev->name);
 		return;
 	}
 
Signature · 1 line
1.6.3.3
maintainer
#1 lore raw

From: Wan ZongShun <[email protected]>
Date: Fri, 15 Oct 2010 23:00:23 +0800

Quoted 7 lines

Hi David,

When I didnot connect the net cable, the warning infos are always showed,
so I change the dev_warn to dev_dbg.

Your patch does not apply to the current tree.