ralink: fix when tx done is 0 also need to clean interrupt status
Signed-off-by: michael lee <igvtee@gmail.com> Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44401
This commit is contained in:
parent
0e2c66bb14
commit
0f4431758b
1 changed files with 3 additions and 3 deletions
|
@ -899,9 +899,6 @@ txpoll_again:
|
||||||
}
|
}
|
||||||
priv->tx_free_idx = idx;
|
priv->tx_free_idx = idx;
|
||||||
|
|
||||||
if (!done)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (budget) {
|
if (budget) {
|
||||||
fe_reg_w32(tx_intr, FE_REG_FE_INT_STATUS);
|
fe_reg_w32(tx_intr, FE_REG_FE_INT_STATUS);
|
||||||
hwidx = fe_reg_r32(FE_REG_TX_DTX_IDX0);
|
hwidx = fe_reg_r32(FE_REG_TX_DTX_IDX0);
|
||||||
|
@ -909,6 +906,9 @@ txpoll_again:
|
||||||
goto txpoll_again;
|
goto txpoll_again;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!done)
|
||||||
|
return 0;
|
||||||
|
|
||||||
netdev_completed_queue(netdev, done, bytes_compl);
|
netdev_completed_queue(netdev, done, bytes_compl);
|
||||||
if (unlikely(netif_queue_stopped(netdev) &&
|
if (unlikely(netif_queue_stopped(netdev) &&
|
||||||
netif_carrier_ok(netdev))) {
|
netif_carrier_ok(netdev))) {
|
||||||
|
|
Loading…
Reference in a new issue