Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266849
b: refs/heads/master
c: fe47f12
h: refs/heads/master
i:
  266847: cb91438
v: v3
  • Loading branch information
Dmitry Tarnyagin authored and David S. Miller committed Oct 19, 2011
1 parent 437cd4e commit e1994ed
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 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: 94230febe47f82331f9493c4fd61085e2a6bf756
refs/heads/master: fe47f1250805438fa06580c9ce6d37bc4bc595d2
25 changes: 18 additions & 7 deletions trunk/drivers/net/caif/caif_hsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,22 @@ static void cfhsi_tx_done_work(struct work_struct *work)
spin_unlock_bh(&cfhsi->lock);

/* Create HSI frame. */
len = cfhsi_tx_frm(desc, cfhsi);
if (!len) {
cfhsi->tx_state = CFHSI_TX_STATE_IDLE;
/* Start inactivity timer. */
mod_timer(&cfhsi->timer,
do {
len = cfhsi_tx_frm(desc, cfhsi);
if (!len) {
spin_lock_bh(&cfhsi->lock);
if (unlikely(skb_peek(&cfhsi->qhead))) {
spin_unlock_bh(&cfhsi->lock);
continue;
}
cfhsi->tx_state = CFHSI_TX_STATE_IDLE;
/* Start inactivity timer. */
mod_timer(&cfhsi->timer,
jiffies + CFHSI_INACTIVITY_TOUT);
break;
}
spin_unlock_bh(&cfhsi->lock);
goto done;
}
} while (!len);

/* Set up new transfer. */
res = cfhsi->dev->cfhsi_tx(cfhsi->tx_buf, len, cfhsi->dev);
Expand All @@ -320,6 +328,9 @@ static void cfhsi_tx_done_work(struct work_struct *work)
__func__, res);
}
} while (res < 0);

done:
return;
}

static void cfhsi_tx_done_cb(struct cfhsi_drv *drv)
Expand Down

0 comments on commit e1994ed

Please sign in to comment.