Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267638
b: refs/heads/master
c: ac657d5
h: refs/heads/master
v: v3
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 0720cb2 commit 984833c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: c8b7de7fce9cffe97e9d10dbda7b5476e2339d6f
refs/heads/master: ac657d5884f31a16c900b2ad1098e01ec7fa4145
15 changes: 11 additions & 4 deletions trunk/drivers/staging/et131x/et131x_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int et131x_open(struct net_device *netdev)
result = request_irq(netdev->irq, et131x_isr, IRQF_SHARED,
netdev->name, netdev);
if (result) {
dev_err(&adapter->pdev->dev, "c ould not register IRQ %d\n",
dev_err(&adapter->pdev->dev, "could not register IRQ %d\n",
netdev->irq);
return result;
}
Expand Down Expand Up @@ -182,6 +182,9 @@ int et131x_close(struct net_device *netdev)
{
struct et131x_adapter *adapter = netdev_priv(netdev);

/* Save the timestamp for the TX watchdog, prevent a timeout */
netdev->trans_start = jiffies;

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

Expand Down Expand Up @@ -449,6 +452,10 @@ void et131x_tx_timeout(struct net_device *netdev)
struct tcb *tcb;
unsigned long flags;

/* If the device is closed, ignore the timeout */
if (~(adapter->flags & fMP_ADAPTER_INTERRUPT_IN_USE));
return;

/* Any nonrecoverable hardware error?
* Checks adapter->flags for any failure in phy reading
*/
Expand Down Expand Up @@ -685,12 +692,12 @@ struct net_device *et131x_device_alloc(void)
return NULL;
}

/* Setup the function registration table (and other data) for a
/*
* Setup the function registration table (and other data) for a
* net_device
*/

netdev->watchdog_timeo = ET131X_TX_TIMEOUT;
netdev->netdev_ops = &et131x_netdev_ops;
netdev->netdev_ops = &et131x_netdev_ops;

/* netdev->ethtool_ops = &et131x_ethtool_ops; */

Expand Down

0 comments on commit 984833c

Please sign in to comment.