From 8557bb6786e695fed7abbbba533fe827143b4c51 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 29 May 2014 07:40:48 -0500 Subject: [PATCH] wctc4xxp: Speed up the rate of polling. The polling interval was not fast enough to keep the tx ring full on a loaded card. This fixes a regression introduced in commits ba05e31c8a786d7524fd1aed47feda27331606dd and 354d88cd418627285e86e77cceb9318e33f0348c. Signed-off-by: Shaun Ruffell Signed-off-by: Russ Meyerriecks --- drivers/dahdi/wctc4xxp/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 006ab49..60f1b77 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -78,7 +78,7 @@ /* The total number of active channels over which the driver will start polling * the card every 10 ms. */ -#define POLLING_CALL_THRESHOLD 8 +#define POLLING_CALL_THRESHOLD 40 #define INVALID 999 /* Used to mark invalid channels, commands, etc.. */ #define MAX_CHANNEL_PACKETS 5 @@ -1904,7 +1904,7 @@ static void wctc4xxp_enable_polling(struct wcdte *wc) { set_bit(DTE_POLLING, &wc->flags); - wctc4xxp_setctl(wc, 0x0058, 0x1000a); + wctc4xxp_setctl(wc, 0x0058, 0x10003); /* Enable the general purpose timer interrupt. */ wctc4xxp_setintmask(wc, (DEFAULT_INTERRUPTS | (1 << 11)) & ~0x41); }