Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309489
b: refs/heads/master
c: 79fba9f
h: refs/heads/master
i:
  309487: ac08bac
v: v3
  • Loading branch information
Yoshihiro Shimoda authored and David S. Miller committed May 29, 2012
1 parent 2adddab commit 71b55ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9dae31009b1a00d926c6fe032d5a88099620adc3
refs/heads/master: 79fba9f51755c704c0a7d7b7f0df10874dc0a744
8 changes: 5 additions & 3 deletions trunk/drivers/net/ethernet/renesas/sh_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,12 @@ static int sh_eth_rx(struct net_device *ndev)

/* Restart Rx engine if stopped. */
/* If we don't need to check status, don't. -KDU */
if (!(sh_eth_read(ndev, EDRRR) & EDRRR_R))
if (!(sh_eth_read(ndev, EDRRR) & EDRRR_R)) {
/* fix the values for the next receiving */
mdp->cur_rx = mdp->dirty_rx = (sh_eth_read(ndev, RDFAR) -
sh_eth_read(ndev, RDLAR)) >> 4;
sh_eth_write(ndev, EDRRR_R, EDRRR);
}

return 0;
}
Expand Down Expand Up @@ -1199,8 +1203,6 @@ static void sh_eth_error(struct net_device *ndev, int intr_status)
/* Receive Descriptor Empty int */
ndev->stats.rx_over_errors++;

if (sh_eth_read(ndev, EDRRR) ^ EDRRR_R)
sh_eth_write(ndev, EDRRR_R, EDRRR);
if (netif_msg_rx_err(mdp))
dev_err(&ndev->dev, "Receive Descriptor Empty\n");
}
Expand Down

0 comments on commit 71b55ee

Please sign in to comment.