Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267637
b: refs/heads/master
c: c8b7de7
h: refs/heads/master
i:
  267635: a088a08
v: v3
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent b324a26 commit 0720cb2
Show file tree
Hide file tree
Showing 3 changed files with 22 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: c922d1241ff37ab2db0f1a29e4b043fe1d8a8e8c
refs/heads/master: c8b7de7fce9cffe97e9d10dbda7b5476e2339d6f
1 change: 0 additions & 1 deletion trunk/drivers/staging/et131x/et1310_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ void et131x_mii_check(struct et131x_adapter *adapter,
u32 mdi_mdix;
u32 masterslave;
u32 polarity;
unsigned long flags;

if (bmsr_ints & MI_BMSR_LINK_STATUS) {
if (bmsr & MI_BMSR_LINK_STATUS) {
Expand Down
23 changes: 21 additions & 2 deletions trunk/drivers/staging/et131x/et131x_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,28 @@ void et131x_tx_timeout(struct net_device *netdev)
tcb->index,
tcb->flags);

et131x_close(netdev);
et131x_open(netdev);
adapter->net_stats.tx_errors++;

/* perform reset */
/* First thing is to stop the queue */
netif_stop_queue(netdev);

/* Stop the Tx and Rx DMA engines */
et131x_rx_dma_disable(adapter);
et131x_tx_dma_disable(adapter);

/* Disable device interrupts */
et131x_disable_interrupts(adapter);

/* Enable the Tx and Rx DMA engines (if not already enabled) */
et131x_rx_dma_enable(adapter);
et131x_tx_dma_enable(adapter);

/* Enable device interrupts */
et131x_enable_interrupts(adapter);

/* We're ready to move some data, so start the queue */
netif_start_queue(netdev);
return;
}
}
Expand Down

0 comments on commit 0720cb2

Please sign in to comment.