netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] atl1: add netconsole support
@ 2007-05-09 14:52 Alexey Dobriyan
  2007-05-09 23:25 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2007-05-09 14:52 UTC (permalink / raw)
  To: jeff; +Cc: netdev, jacliburn

Copied from b44 driver, but it works:

netconsole: device eth0 not up yet, forcing it
atl1: eth0 link is up 100 Mbps full duplex
netconsole: network logging started

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 drivers/net/atl1/atl1_main.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

--- a/drivers/net/atl1/atl1_main.c
+++ b/drivers/net/atl1/atl1_main.c
@@ -2046,6 +2046,15 @@ static int atl1_close(struct net_device *netdev)
 	return 0;
 }
 
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void atl1_poll_controller(struct net_device *netdev)
+{
+	disable_irq(netdev->irq);
+	atl1_intr(netdev->irq, netdev);
+	enable_irq(netdev->irq);
+}
+#endif
+
 /*
  * If TPD Buffer size equal to 0, PCIE DMAR_TO_INT
  * will assert. We do soft reset <0x1400=1> according
@@ -2198,6 +2207,9 @@ static int __devinit atl1_probe(struct pci_dev *pdev,
 	netdev->do_ioctl = &atl1_ioctl;
 	netdev->tx_timeout = &atl1_tx_timeout;
 	netdev->watchdog_timeo = 5 * HZ;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+	netdev->poll_controller = atl1_poll_controller;
+#endif
 	netdev->vlan_rx_register = atl1_vlan_rx_register;
 	netdev->vlan_rx_add_vid = atl1_vlan_rx_add_vid;
 	netdev->vlan_rx_kill_vid = atl1_vlan_rx_kill_vid;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] atl1: add netconsole support
  2007-05-09 14:52 [PATCH] atl1: add netconsole support Alexey Dobriyan
@ 2007-05-09 23:25 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-05-09 23:25 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: netdev, jacliburn

Alexey Dobriyan wrote:
> Copied from b44 driver, but it works:
> 
> netconsole: device eth0 not up yet, forcing it
> atl1: eth0 link is up 100 Mbps full duplex
> netconsole: network logging started
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
> 
>  drivers/net/atl1/atl1_main.c |   12 ++++++++++++
>  1 file changed, 12 insertions(+)

applied



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-09 23:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-09 14:52 [PATCH] atl1: add netconsole support Alexey Dobriyan
2007-05-09 23:25 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).