|
@@ -637,6 +637,9 @@ static int ti_hecc_rx_poll(struct napi_struct *napi, int quota)
|
|
mbx_mask = hecc_read(priv, HECC_CANMIM);
|
|
mbx_mask = hecc_read(priv, HECC_CANMIM);
|
|
mbx_mask |= HECC_TX_MBOX_MASK;
|
|
mbx_mask |= HECC_TX_MBOX_MASK;
|
|
hecc_write(priv, HECC_CANMIM, mbx_mask);
|
|
hecc_write(priv, HECC_CANMIM, mbx_mask);
|
|
|
|
+ } else {
|
|
|
|
+ /* repoll is done only if whole budget is used */
|
|
|
|
+ num_pkts = quota;
|
|
}
|
|
}
|
|
|
|
|
|
return num_pkts;
|
|
return num_pkts;
|