pollcontroller patch for 2.6.0-test10-bk25-netdrvr-exp1
Subsystems (2)
PATCH 1/4 pollcontroller patch for 2.6.0-test10-bk25-netdrvr-exp1
Hi Jeff,
Below is the pollcontroller patch for e100.
This patch can be applied over 2.6.0-test9-bk25-netdrvr-exp1.patch
drivers/net/e100/e100_main.c +19 -0
@@ -544,6 +544,22 @@ e100_trigger_SWI(struct e100_private *bdreadw (&(bdp->scb->scb_status));/* flushes last write, read-safe */ } +#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 +e100_poll (struct net_device *dev) +{ +disable_irq (dev->irq); +e100intr (dev->irq, dev,NULL ); +enable_irq (dev->irq); +} +#endif +static int __devinit e100_found1 (struct pci_dev *pcid,const struct pci_device_id *ent) {
@@ -562,6 +578,9 @@ e100_found1(struct pci_dev *pcid, constSET_MODULE_OWNER (dev); +#ifdef CONFIG_NET_POLL_CONTROLLER + dev->poll_controller = &e100_poll; +#endif if (first_time) { first_time = false; printk(KERN_NOTICE "%s - version %s\n",
Signature · 5 lines
Thanks & Regards Prasanna S Panchamukhi Linux Technology Center India Software Labs, IBM Bangalore Ph: 91-80-5044632