Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4609
b: refs/heads/master
c: cd5c08f
h: refs/heads/master
i:
  4607: c5f1070
v: v3
  • Loading branch information
Duncan Sands authored and Greg Kroah-Hartman committed Jul 12, 2005
1 parent 335e367 commit 76b711e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 322a95bc8eba889d2f9d7222936d682c9aad8294
refs/heads/master: cd5c08fb7b0d960b7cd48bc977feee7b3bd8b046
6 changes: 2 additions & 4 deletions trunk/drivers/usb/atm/speedtch.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,11 @@ static void speedtch_check_status(struct speedtch_instance_data *instance)
ret = speedtch_read_status(instance);
if (ret < 0) {
atm_warn(usbatm, "error %d fetching device status\n", ret);
if (instance->poll_delay < MAX_POLL_DELAY)
instance->poll_delay *= 2;
instance->poll_delay = min(2 * instance->poll_delay, MAX_POLL_DELAY);
return;
}

if (instance->poll_delay > MIN_POLL_DELAY)
instance->poll_delay /= 2;
instance->poll_delay = max(instance->poll_delay / 2, MIN_POLL_DELAY);

atm_dbg(usbatm, "%s: line state %02x\n", __func__, buf[OFFSET_7]);

Expand Down

0 comments on commit 76b711e

Please sign in to comment.