[PATCH 2/3] cxacru: Poll for device status more frequently.

From: Simon Arlott
Date: Tue Jan 30 2007 - 16:35:51 EST


The device is only polled for status every 5 seconds yet status updates occur as often as every second - when the line is down the status changes between "down" and "attempting to activate" every 2 seconds.

Signed-off-by: Simon Arlott <simon@xxxxxxxxxxx>

---
drivers/usb/atm/cxacru.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index c1f97a3..a30cd9b 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -64,7 +64,7 @@ #define BR_STACK_ADDR 0x00187f10
#define SDRAM_ENA 0x1

#define CMD_TIMEOUT 2000 /* msecs */
-#define POLL_INTERVAL 5000 /* msecs */
+#define POLL_INTERVAL 500 /* msecs */

/* commands for interaction with the modem through the control channel before
* firmware is loaded */
--
1.4.3.1


--
Simon Arlott (subscribed to lkml, don't CC)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/