* [PATCH] net: add net poll support for atl2 driver
@ 2008-09-20 7:56 Kevin Hao
2008-09-25 23:45 ` Jay Cliburn
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Hao @ 2008-09-20 7:56 UTC (permalink / raw)
To: Jeff Garzik, Chris Snook, Jay Cliburn, netdev, linux-kernel
Add netconsole support for Atheros L2 10/100 network device.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
drivers/net/atlx/atl2.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c
index d548a67..b2995ac 100644
--- a/drivers/net/atlx/atl2.c
+++ b/drivers/net/atlx/atl2.c
@@ -1327,6 +1327,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
@@ -1410,6 +1419,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;
--
1.5.6.2.220.g44701
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] net: add net poll support for atl2 driver
2008-09-20 7:56 [PATCH] net: add net poll support for atl2 driver Kevin Hao
@ 2008-09-25 23:45 ` Jay Cliburn
0 siblings, 0 replies; 2+ messages in thread
From: Jay Cliburn @ 2008-09-25 23:45 UTC (permalink / raw)
To: Kevin Hao; +Cc: Jeff Garzik, Chris Snook, netdev, linux-kernel
On Sat, 20 Sep 2008 15:56:44 +0800
Kevin Hao <kexin.hao@windriver.com> wrote:
> Add netconsole support for Atheros L2 10/100 network device.
>
> Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
> ---
> drivers/net/atlx/atl2.c | 12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c
> index d548a67..b2995ac 100644
> --- a/drivers/net/atlx/atl2.c
> +++ b/drivers/net/atlx/atl2.c
> @@ -1327,6 +1327,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
> @@ -1410,6 +1419,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;
Acked-by: Jay Cliburn <jacliburn@bellsouth.net>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-25 23:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-20 7:56 [PATCH] net: add net poll support for atl2 driver Kevin Hao
2008-09-25 23:45 ` Jay Cliburn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox