|
@@ -814,9 +814,6 @@ static int c_can_do_rx_poll(struct net_device *dev, int quota)
|
|
|
msg_ctrl_save = priv->read_reg(priv,
|
|
|
C_CAN_IFACE(MSGCTRL_REG, 0));
|
|
|
|
|
|
- if (msg_ctrl_save & IF_MCONT_EOB)
|
|
|
- return num_rx_pkts;
|
|
|
-
|
|
|
if (msg_ctrl_save & IF_MCONT_MSGLST) {
|
|
|
c_can_handle_lost_msg_obj(dev, 0, msg_obj);
|
|
|
num_rx_pkts++;
|
|
@@ -824,6 +821,9 @@ static int c_can_do_rx_poll(struct net_device *dev, int quota)
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
+ if (msg_ctrl_save & IF_MCONT_EOB)
|
|
|
+ return num_rx_pkts;
|
|
|
+
|
|
|
if (!(msg_ctrl_save & IF_MCONT_NEWDAT))
|
|
|
continue;
|
|
|
|