Message ID | 20190724130322.31702-3-mkl@pengutronix.de |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show |
Series | pull-request: can 2019-07-24 | expand |
> NOTE: The patch will not be queued to stable trees until it is upstream. > > How should we proceed with this patch? I don't know. Maintainer did not respond, nor to original send nor to resend.
On 7/25/19 3:29 PM, Nikita Yushchenko wrote: >> NOTE: The patch will not be queued to stable trees until it is upstream. >> >> How should we proceed with this patch? > > I don't know. > Maintainer did not respond, nor to original send nor to resend. You can backport this patch to v4.9.186 and send it to Sasha Marc
diff --git a/drivers/net/can/rcar/rcar_canfd.c b/drivers/net/can/rcar/rcar_canfd.c index 05410008aa6b..de34a4b82d4a 100644 --- a/drivers/net/can/rcar/rcar_canfd.c +++ b/drivers/net/can/rcar/rcar_canfd.c @@ -1508,10 +1508,11 @@ static int rcar_canfd_rx_poll(struct napi_struct *napi, int quota) /* All packets processed */ if (num_pkts < quota) { - napi_complete_done(napi, num_pkts); - /* Enable Rx FIFO interrupts */ - rcar_canfd_set_bit(priv->base, RCANFD_RFCC(ridx), - RCANFD_RFCC_RFIE); + if (napi_complete_done(napi, num_pkts)) { + /* Enable Rx FIFO interrupts */ + rcar_canfd_set_bit(priv->base, RCANFD_RFCC(ridx), + RCANFD_RFCC_RFIE); + } } return num_pkts; }