[svn-commits] sruffell: linux/trunk r9534 - /linux/trunk/drivers/dahdi/voicebus/voicebus.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 15 17:53:11 UTC 2010


Author: sruffell
Date: Wed Dec 15 11:53:07 2010
New Revision: 9534

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9534
Log:
wctdm24xxp, wcte12xp: Add more descriptive message on a failed reset.

Reading 0xffffffff from the registers is a different error than just not
coming out of reset.  Add a little extra debugging information.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>
Acked-By: Russ Meyerriecks <rmeyerriecks at digium.com>

Modified:
    linux/trunk/drivers/dahdi/voicebus/voicebus.c

Modified: linux/trunk/drivers/dahdi/voicebus/voicebus.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/voicebus/voicebus.c?view=diff&rev=9534&r1=9533&r2=9534
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus/voicebus.c (original)
+++ linux/trunk/drivers/dahdi/voicebus/voicebus.c Wed Dec 15 11:53:07 2010
@@ -671,8 +671,13 @@
 	} while ((reg & 0x00000001) && time_before(jiffies, timeout));
 
 	if (reg & 0x00000001) {
-		dev_warn(&vb->pdev->dev, "Did not come out of reset "
-			 "within 100ms\n");
+		if (-1 == reg) {
+			dev_err(&vb->pdev->dev,
+				"Unable to read I/O registers.\n");
+		} else {
+			dev_err(&vb->pdev->dev, "Did not come out of reset "
+				"within 100ms\n");
+		}
 		return -EIO;
 	}
 




More information about the svn-commits mailing list