Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112171
b: refs/heads/master
c: 8d1b1fc
h: refs/heads/master
i:
  112169: 4254e9e
  112167: 8f23b4e
v: v3
  • Loading branch information
Kevin Hao authored and David S. Miller committed Oct 8, 2008
1 parent 3bf8357 commit 42d8685
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6fbc779c03591ee536fef9efb7d7e20f281d0b5c
refs/heads/master: 8d1b1fc9b97ad4de40c063ce3d213895c06fa116
12 changes: 12 additions & 0 deletions trunk/drivers/net/atlx/atl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,15 @@ static void atl2_setup_pcicmd(struct pci_dev *pdev)
pci_write_config_dword(pdev, REG_PM_CTRLSTAT, 0);
}

#ifdef CONFIG_NET_POLL_CONTROLLER
static void atl2_poll_controller(struct net_device *netdev)
{
disable_irq(netdev->irq);
atl2_intr(netdev->irq, netdev);
enable_irq(netdev->irq);
}
#endif

/*
* atl2_probe - Device Initialization Routine
* @pdev: PCI device information struct
Expand Down Expand Up @@ -1412,6 +1421,9 @@ static int __devinit atl2_probe(struct pci_dev *pdev,
netdev->do_ioctl = &atl2_ioctl;
atl2_set_ethtool_ops(netdev);

#ifdef CONFIG_NET_POLL_CONTROLLER
netdev->poll_controller = atl2_poll_controller;
#endif
#ifdef HAVE_TX_TIMEOUT
netdev->tx_timeout = &atl2_tx_timeout;
netdev->watchdog_timeo = 5 * HZ;
Expand Down

0 comments on commit 42d8685

Please sign in to comment.