From: Jay Cliburn <jacliburn@bellsouth.net>
To: Kevin Hao <kexin.hao@windriver.com>
Cc: Jeff Garzik <jgarzik@redhat.com>, Chris Snook <csnook@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: add net poll support for atl2 driver
Date: Thu, 25 Sep 2008 18:45:09 -0500 [thread overview]
Message-ID: <20080925184509.42bfabc2@osprey.hogchain.net> (raw)
In-Reply-To: <1221897404-20290-1-git-send-email-kexin.hao@windriver.com>
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>
prev parent reply other threads:[~2008-09-25 23:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-20 7:56 [PATCH] net: add net poll support for atl2 driver Kevin Hao
2008-09-25 23:45 ` Jay Cliburn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080925184509.42bfabc2@osprey.hogchain.net \
--to=jacliburn@bellsouth.net \
--cc=csnook@redhat.com \
--cc=jgarzik@redhat.com \
--cc=kexin.hao@windriver.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox