diff options
Diffstat (limited to 'drivers/net/ethernet/renesas/ravb_main.c')
-rw-r--r-- | drivers/net/ethernet/renesas/ravb_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index aa7b2083cb53..ee8d1ec61fab 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c | |||
@@ -408,8 +408,6 @@ static int ravb_dmac_init(struct net_device *ndev) | |||
408 | /* Interrupt enable: */ | 408 | /* Interrupt enable: */ |
409 | /* Frame receive */ | 409 | /* Frame receive */ |
410 | ravb_write(ndev, RIC0_FRE0 | RIC0_FRE1, RIC0); | 410 | ravb_write(ndev, RIC0_FRE0 | RIC0_FRE1, RIC0); |
411 | /* Receive FIFO full warning */ | ||
412 | ravb_write(ndev, RIC1_RFWE, RIC1); | ||
413 | /* Receive FIFO full error, descriptor empty */ | 411 | /* Receive FIFO full error, descriptor empty */ |
414 | ravb_write(ndev, RIC2_QFE0 | RIC2_QFE1 | RIC2_RFFE, RIC2); | 412 | ravb_write(ndev, RIC2_QFE0 | RIC2_QFE1 | RIC2_RFFE, RIC2); |
415 | /* Frame transmitted, timestamp FIFO updated */ | 413 | /* Frame transmitted, timestamp FIFO updated */ |
@@ -733,8 +731,10 @@ static irqreturn_t ravb_interrupt(int irq, void *dev_id) | |||
733 | ((tis & tic) & BIT(q))) { | 731 | ((tis & tic) & BIT(q))) { |
734 | if (napi_schedule_prep(&priv->napi[q])) { | 732 | if (napi_schedule_prep(&priv->napi[q])) { |
735 | /* Mask RX and TX interrupts */ | 733 | /* Mask RX and TX interrupts */ |
736 | ravb_write(ndev, ric0 & ~BIT(q), RIC0); | 734 | ric0 &= ~BIT(q); |
737 | ravb_write(ndev, tic & ~BIT(q), TIC); | 735 | tic &= ~BIT(q); |
736 | ravb_write(ndev, ric0, RIC0); | ||
737 | ravb_write(ndev, tic, TIC); | ||
738 | __napi_schedule(&priv->napi[q]); | 738 | __napi_schedule(&priv->napi[q]); |
739 | } else { | 739 | } else { |
740 | netdev_warn(ndev, | 740 | netdev_warn(ndev, |