Commit da5508a5 authored by Russell King's avatar Russell King

[ARM] Add netconsole support to ARM AM79C961A driver.

parent d3069b4d
...@@ -630,6 +630,16 @@ am79c961_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -630,6 +630,16 @@ am79c961_interrupt(int irq, void *dev_id, struct pt_regs *regs)
return IRQ_RETVAL(handled); return IRQ_RETVAL(handled);
} }
#ifdef CONFIG_NET_POLL_CONTROLLER
static void am79c961_poll_controller(struct net_device *dev)
{
unsigned long flags;
local_irq_save(flags);
am79c961_interrupt(dev->irq, dev, NULL);
local_irq_restore(flags);
}
#endif
/* /*
* Initialise the chip. Note that we always expect * Initialise the chip. Note that we always expect
* to be entered with interrupts enabled. * to be entered with interrupts enabled.
...@@ -721,6 +731,9 @@ static int __init am79c961_init(void) ...@@ -721,6 +731,9 @@ static int __init am79c961_init(void)
dev->get_stats = am79c961_getstats; dev->get_stats = am79c961_getstats;
dev->set_multicast_list = am79c961_setmulticastlist; dev->set_multicast_list = am79c961_setmulticastlist;
dev->tx_timeout = am79c961_timeout; dev->tx_timeout = am79c961_timeout;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = am79c961_poll_controller;
#endif
ret = register_netdev(dev); ret = register_netdev(dev);
if (ret == 0) if (ret == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment