From: "George G. Davis" <gdavis@mvista.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] net: Add netconsole support to cs89x0 driver
Date: Tue, 24 May 2005 18:10:38 -0400 [thread overview]
Message-ID: <20050524221038.GR438@mvista.com> (raw)
Greetings,
I've compile tested this on linux-2.6.12-rc4-git8 and tested kgdboe on
"Some Random (ARM) V6 Processor" using a linux-2.6.10 based kernel. Please
apply. TIA!
--
Regards,
George
Add netconsole support to cs89x0 driver
Signed-off-by: George G. Davis <gdavis@mvista.com>
cs89x0.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
Index: linux-2.6.12-rc4-git8/drivers/net/cs89x0.c
===================================================================
--- linux-2.6.12-rc4-git8.orig/drivers/net/cs89x0.c
+++ linux-2.6.12-rc4-git8/drivers/net/cs89x0.c
@@ -404,6 +404,19 @@
return -1;
}
+#ifdef CONFIG_NET_POLL_CONTROLLER
+/*
+ * Polling receive - used by netconsole and other diagnostic tools
+ * to allow network i/o with interrupts disabled.
+ */
+static void cs89x0_poll_controller(struct net_device *dev)
+{
+ disable_irq(dev->irq);
+ net_interrupt(dev->irq, dev, NULL);
+ enable_irq(dev->irq);
+}
+#endif
+
/* This is the real probe routine. Linux has a history of friendly device
probes on the ISA bus. A good device probes avoids doing writes, and
verifies that the correct device exists and functions.
@@ -731,6 +744,9 @@
dev->get_stats = net_get_stats;
dev->set_multicast_list = set_multicast_list;
dev->set_mac_address = set_mac_address;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ dev->poll_controller = cs89x0_poll_controller;
+#endif
printk("\n");
if (net_debug)
reply other threads:[~2005-05-24 22:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050524221038.GR438@mvista.com \
--to=gdavis@mvista.com \
--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
all inboxes | Powered by JetHome®