Patchwork smsc911x: correct debugging message on mii read timeout

login
register
mail settings
Submitter Steve Glendinning
Date April 8, 2009, 7:27 p.m.
Message ID <1239218843-18653-1-git-send-email-steve.glendinning@smsc.com>
Download mbox | patch
Permalink /patch/25734/
State Accepted
Delegated to: David Miller
Headers show

Comments

Steve Glendinning - April 8, 2009, 7:27 p.m.
the warning printed when a mii READ times out currently says "Timed out
waiting for MII write to finish".  This patch corrects this.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
---
 drivers/net/smsc911x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - April 8, 2009, 10:42 p.m.
From: Steve Glendinning <steve.glendinning@smsc.com>
Date: Wed,  8 Apr 2009 20:27:23 +0100

> the warning printed when a mii READ times out currently says "Timed out
> waiting for MII write to finish".  This patch corrects this.
> 
> Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c
index 6da6781..eb7db03 100644
--- a/drivers/net/smsc911x.c
+++ b/drivers/net/smsc911x.c
@@ -317,7 +317,7 @@  static int smsc911x_mii_read(struct mii_bus *bus, int phyaddr, int regidx)
 			goto out;
 		}
 
-	SMSC_WARNING(HW, "Timed out waiting for MII write to finish");
+	SMSC_WARNING(HW, "Timed out waiting for MII read to finish");
 	reg = -EIO;
 
 out: