[dahdi-commits] sruffell: branch linux/sruffell/dahdi-linux-wctc4xxp r8791 - /linux/team/sruf...
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Fri Jun 18 18:11:43 CDT 2010
Author: sruffell
Date: Fri Jun 18 18:11:39 2010
New Revision: 8791
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8791
Log:
wctc4xxp-wip: Operate in a pure polling mode.
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=8791&r1=8790&r2=8791
==============================================================================
--- 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:11:39 2010
@@ -1896,10 +1896,12 @@
#endif
atomic_dec(&wc->open_channels);
+ /* This version is testing polling all the time.
if (atomic_read(&wc->open_channels) < POLLING_CALL_THRESHOLD) {
if (test_bit(DTE_POLLING, &wc->flags))
wctc4xxp_disable_polling(wc);
}
+ */
packets_received = atomic_read(&cpvt->stats.packets_received);
packets_sent = atomic_read(&cpvt->stats.packets_sent);
@@ -3564,6 +3566,7 @@
if (res)
goto error_exit_hwinit;
+ wctc4xxp_enable_polling(wc);
res = wctc4xxp_setup_channels(wc);
if (res)
goto error_exit_hwinit;
@@ -3586,6 +3589,7 @@
return 0;
error_exit_hwinit:
+ wctc4xxp_disable_polling(wc);
wctc4xxp_stop_dma(wc);
wctc4xxp_cleanup_command_list(wc);
free_irq(pdev->irq, wc);
More information about the dahdi-commits
mailing list