From: Jeff Garzik <jgarzik@pobox.com>
To: Colin Leroy <colin@colino.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Add polling support to Sungem
Date: Wed, 29 Sep 2004 12:00:49 -0400 [thread overview]
Message-ID: <415ADC31.7080902@pobox.com> (raw)
In-Reply-To: <20040929145721.6a489ed8@pirandello>
Colin Leroy wrote:
> [sending again, forgot Cc:, sorry]
>
> Hi Benjamin!
>
> This patch adds polling support to Sungem ethernet card. It makes
> netconsole usable on iBook G4, for example.
> I hope it's fine.
>
> Signed-off-by: Colin Leroy <colin@colino.net>
>
> --- a/drivers/net/sungem.c 2004-09-29 12:22:41.802346664 +0200
> +++ b/drivers/net/sungem.c 2004-09-29 12:15:56.000000000 +0200
> @@ -2687,6 +2687,23 @@
> }
> #endif /* not Sparc and not PPC */
>
> +#ifdef CONFIG_NET_POLL_CONTROLLER
> +/*
> + * Polling 'interrupt' - used by things like netconsole to send skbs
> + * without having to re-enable interrupts. It's not called while
> + * the interrupt routine is executing.
> + */
> +static void gem_netpoll(struct net_device *netdev)
> +{
> + struct gem *gp = netdev->priv;
> + if (!gp->pdev)
> + return;
> + disable_irq(gp->pdev->irq);
> + gem_interrupt(gp->pdev->irq, netdev, NULL);
> + enable_irq(gp->pdev->irq);
> +}
> +#endif
Check BK snapshots, this support is already in sungem.
Jeff
next prev parent reply other threads:[~2004-09-29 16:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-29 12:57 [PATCH] Add polling support to Sungem Colin Leroy
2004-09-29 16:00 ` Jeff Garzik [this message]
2004-09-29 16:05 ` Colin Leroy
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=415ADC31.7080902@pobox.com \
--to=jgarzik@pobox.com \
--cc=benh@kernel.crashing.org \
--cc=colin@colino.net \
--cc=linux-kernel@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