* [PATCH 2.6.19] AT91RM9200 Ethernet update 2
@ 2006-12-04 12:42 Andrew Victor
2006-12-04 18:01 ` Stephen Hemminger
2006-12-04 23:42 ` Jeff Garzik
0 siblings, 2 replies; 4+ messages in thread
From: Andrew Victor @ 2006-12-04 12:42 UTC (permalink / raw)
To: netdev; +Cc: jgarzik
This patch adds NetPoll / NetConsole support to the Atmel AT91RM9200
Ethernet driver.
Original patch from Bill Gatliff.
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
diff -urN linux-2.6.19-final.orig/drivers/net/arm/at91_ether.c linux-2.6.19-final/drivers/net/arm/at91_ether.c
--- linux-2.6.19-final.orig/drivers/net/arm/at91_ether.c Mon Dec 4 14:27:21 2006
+++ linux-2.6.19-final/drivers/net/arm/at91_ether.c Mon Dec 4 14:33:35 2006
@@ -925,6 +925,17 @@
return IRQ_HANDLED;
}
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void at91ether_poll_controller(struct net_device *dev)
+{
+ unsigned long flags;
+
+ local_irq_save(flags);
+ at91ether_interrupt(dev->irq, dev, NULL);
+ local_irq_restore(flags);
+}
+#endif
+
/*
* Initialize the ethernet interface
*/
@@ -974,6 +985,9 @@
dev->set_mac_address = set_mac_address;
dev->ethtool_ops = &at91ether_ethtool_ops;
dev->do_ioctl = at91ether_ioctl;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ dev->poll_controller = at91ether_poll_controller;
+#endif
SET_NETDEV_DEV(dev, &pdev->dev);
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.19] AT91RM9200 Ethernet update 2
2006-12-04 12:42 [PATCH 2.6.19] AT91RM9200 Ethernet update 2 Andrew Victor
@ 2006-12-04 18:01 ` Stephen Hemminger
2006-12-05 6:15 ` Andrew Victor
2006-12-04 23:42 ` Jeff Garzik
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2006-12-04 18:01 UTC (permalink / raw)
To: Andrew Victor; +Cc: netdev, jgarzik
On 04 Dec 2006 14:42:08 +0200
Andrew Victor <andrew@sanpeople.com> wrote:
> This patch adds NetPoll / NetConsole support to the Atmel AT91RM9200
> Ethernet driver.
>
> Original patch from Bill Gatliff.
>
>
> Signed-off-by: Andrew Victor <andrew@sanpeople.com>
>
>
> diff -urN linux-2.6.19-final.orig/drivers/net/arm/at91_ether.c linux-2.6.19-final/drivers/net/arm/at91_ether.c
> --- linux-2.6.19-final.orig/drivers/net/arm/at91_ether.c Mon Dec 4 14:27:21 2006
> +++ linux-2.6.19-final/drivers/net/arm/at91_ether.c Mon Dec 4 14:33:35 2006
> @@ -925,6 +925,17 @@
> return IRQ_HANDLED;
> }
>
> +#ifdef CONFIG_NET_POLL_CONTROLLER
> +static void at91ether_poll_controller(struct net_device *dev)
> +{
> + unsigned long flags;
> +
> + local_irq_save(flags);
> + at91ether_interrupt(dev->irq, dev, NULL);
> + local_irq_restore(flags);
> +}
> +#endif
poll_controller is always called with interrupts already disabled.
The third argument to interrupt routines was dropped (struct pt_regs) in 2.6.19.
Maybe that never got fixed in ARM?
--
Stephen Hemminger <shemminger@osdl.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.19] AT91RM9200 Ethernet update 2
2006-12-04 12:42 [PATCH 2.6.19] AT91RM9200 Ethernet update 2 Andrew Victor
2006-12-04 18:01 ` Stephen Hemminger
@ 2006-12-04 23:42 ` Jeff Garzik
1 sibling, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2006-12-04 23:42 UTC (permalink / raw)
To: Andrew Victor; +Cc: netdev
Andrew Victor wrote:
> This patch adds NetPoll / NetConsole support to the Atmel AT91RM9200
> Ethernet driver.
>
> Original patch from Bill Gatliff.
>
>
> Signed-off-by: Andrew Victor <andrew@sanpeople.com>
ACK patch content, but comments about email description / subject line
also apply here.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.19] AT91RM9200 Ethernet update 2
2006-12-04 18:01 ` Stephen Hemminger
@ 2006-12-05 6:15 ` Andrew Victor
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Victor @ 2006-12-05 6:15 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev, jgarzik
hi Stephen,
> poll_controller is always called with interrupts already disabled.
All the other network drivers I looked at seem to disable the interrupt.
> The third argument to interrupt routines was dropped (struct pt_regs) in 2.6.19.
> Maybe that never got fixed in ARM?
My mistake - ARM was fixed up.
I rarely compile with netconsole support so this change slipped through.
Regards,
Andrew Victor
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-05 6:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-04 12:42 [PATCH 2.6.19] AT91RM9200 Ethernet update 2 Andrew Victor
2006-12-04 18:01 ` Stephen Hemminger
2006-12-05 6:15 ` Andrew Victor
2006-12-04 23:42 ` 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).