[svn-commits] sruffell: branch linux/sruffell/dahdi-linux-wctc4xxp r8790 - /linux/team/sruf...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Jun 18 18:04:46 CDT 2010
Author: sruffell
Date: Fri Jun 18 18:04:43 2010
New Revision: 8790
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8790
Log:
wctc4xxp: Let's try loading the firmware in a pure polling mode as a test.
Modified:
linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c
Modified: linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=8790&r1=8789&r2=8790
==============================================================================
--- linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c Fri Jun 18 18:04:43 2010
@@ -2860,6 +2860,7 @@
if (!cmd)
return -ENOMEM;
+ wctc4xxp_enable_polling(wc);
while (byteloc < (firmware->size-20)) {
last_byteloc = byteloc;
length = (firmware->data[byteloc] << 8) |
@@ -2875,14 +2876,18 @@
if (cmd->flags & DTE_CMD_TIMEOUT) {
free_cmd(cmd);
DTE_PRINTK(ERR, "Failed to load firmware.\n");
+ wctc4xxp_disable_polling(wc);
return -EIO;
}
}
free_cmd(cmd);
if (!wait_event_timeout(wc->waitq, wctc4xxp_is_ready(wc), 15*HZ)) {
DTE_PRINTK(ERR, "Failed to boot firmware.\n");
+ wctc4xxp_disable_polling(wc);
return -EIO;
}
+
+ wctc4xxp_disable_polling(wc);
return 0;
}
More information about the svn-commits
mailing list