Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275662
b: refs/heads/master
c: 50ec153
h: refs/heads/master
v: v3
  • Loading branch information
Ricardo Ribalda authored and David S. Miller committed Nov 9, 2011
1 parent 0a0ff32 commit 3a6b37b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 2bc8ca40f951163b3bb75949479e2755c12c1b96
refs/heads/master: 50ec1538fac0e39078d45ca5f8a5186621830058
6 changes: 5 additions & 1 deletion trunk/drivers/net/ethernet/xilinx/ll_temac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ static void temac_dma_bd_release(struct net_device *ndev)
struct temac_local *lp = netdev_priv(ndev);
int i;

/* Reset Local Link (DMA) */
lp->dma_out(lp, DMA_CONTROL_REG, DMA_CONTROL_RST);

for (i = 0; i < RX_BD_NUM; i++) {
if (!lp->rx_skb[i])
break;
Expand Down Expand Up @@ -860,14 +863,15 @@ static int temac_open(struct net_device *ndev)
phy_start(lp->phy_dev);
}

temac_device_reset(ndev);

rc = request_irq(lp->tx_irq, ll_temac_tx_irq, 0, ndev->name, ndev);
if (rc)
goto err_tx_irq;
rc = request_irq(lp->rx_irq, ll_temac_rx_irq, 0, ndev->name, ndev);
if (rc)
goto err_rx_irq;

temac_device_reset(ndev);
return 0;

err_rx_irq:
Expand Down

0 comments on commit 3a6b37b

Please sign in to comment.