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@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com> Acked-By: Russ Meyerriecks <rmeyerriecks@digium.com> Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9534 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@9684 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
@@ -678,8 +678,13 @@ vb_reset_interface(struct voicebus *vb)
|
||||
} 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user