git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
can: ti_hecc: Fix napi poll return value for repoll
[pandora-kernel.git]
/
drivers
/
net
/
can
/
ti_hecc.c
diff --git
a/drivers/net/can/ti_hecc.c
b/drivers/net/can/ti_hecc.c
index
a5eeeb1
..
af3abc6
100644
(file)
--- a/
drivers/net/can/ti_hecc.c
+++ b/
drivers/net/can/ti_hecc.c
@@
-651,6
+651,9
@@
static int ti_hecc_rx_poll(struct napi_struct *napi, int quota)
mbx_mask = hecc_read(priv, HECC_CANMIM);
mbx_mask |= HECC_TX_MBOX_MASK;
hecc_write(priv, HECC_CANMIM, mbx_mask);
+ } else {
+ /* repoll is done only if whole budget is used */
+ num_pkts = quota;
}
return num_pkts;