speedtch speedtch.c,1.50,1.51
Duncan Sands
duncan at infradead.org
Fri Apr 22 04:12:40 EDT 2005
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv24721
Modified Files:
speedtch.c
Log Message:
Dethrottle if things start working again. Print a message if we disable polling.
Index: speedtch.c
===================================================================
RCS file: /home/cvs/speedtch/speedtch.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- speedtch.c 22 Apr 2005 07:50:02 -0000 1.50
+++ speedtch.c 22 Apr 2005 08:12:36 -0000 1.51
@@ -490,6 +490,9 @@
return;
}
+ if (instance->poll_delay > SPEEDTCH_MIN_POLL_DELAY)
+ instance->poll_delay /= 2;
+
atm_dbg(usbatm, "%s: line state %02x\n", __func__, buf[OFFSET_7]);
switch (buf[OFFSET_7]) {
@@ -555,6 +558,8 @@
/* The following check is racy, but the race is harmless */
if (instance->poll_delay < SPEEDTCH_MAX_POLL_DELAY)
mod_timer(&instance->poll_timer, jiffies + msecs_to_jiffies(instance->poll_delay));
+ else
+ atm_warn(instance->usbatm, "Too many failures - disabling line status polling\n");
}
static int speedtch_atm_start(struct usbatm_data *usbatm, struct atm_dev *atm_dev)
More information about the Usbatm-commits
mailing list