* [PATCH 1/1] net/velocity: add poll controller function for velocity nic
@ 2013-07-19 0:45 Amit Uttamchandani
2013-07-19 6:11 ` Francois Romieu
2013-07-20 0:35 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Amit Uttamchandani @ 2013-07-19 0:45 UTC (permalink / raw)
To: Francois Romieu, netdev; +Cc: linux-kernel, Amit Uttamchandani
Add poll controller function for velocity nic.
Signed-off-by: Amit Uttamchandani <auttamchandani@logicube.com>
---
drivers/net/ethernet/via/via-velocity.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c
index 1d6dc41..ef77631 100644
--- a/drivers/net/ethernet/via/via-velocity.c
+++ b/drivers/net/ethernet/via/via-velocity.c
@@ -2376,6 +2376,23 @@ out_0:
return ret;
}
+#ifdef CONFIG_NET_POLL_CONTROLLER
+/**
+ * velocity_poll_controller - Velocity Poll controller function
+ * @dev: network device
+ *
+ *
+ * Used by NETCONSOLE and other diagnostic tools to allow network I/P
+ * with interrupts disabled.
+ */
+static void velocity_poll_controller(struct net_device *dev)
+{
+ disable_irq(dev->irq);
+ velocity_intr(dev->irq, dev);
+ enable_irq(dev->irq);
+}
+#endif
+
/**
* velocity_mii_ioctl - MII ioctl handler
* @dev: network device
@@ -2641,6 +2658,9 @@ static const struct net_device_ops velocity_netdev_ops = {
.ndo_do_ioctl = velocity_ioctl,
.ndo_vlan_rx_add_vid = velocity_vlan_rx_add_vid,
.ndo_vlan_rx_kill_vid = velocity_vlan_rx_kill_vid,
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ .ndo_poll_controller = velocity_poll_controller,
+#endif
};
/**
--
1.8.0.rc0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] net/velocity: add poll controller function for velocity nic
2013-07-19 0:45 [PATCH 1/1] net/velocity: add poll controller function for velocity nic Amit Uttamchandani
@ 2013-07-19 6:11 ` Francois Romieu
2013-07-19 6:21 ` Amit Uttamchandani
2013-07-20 0:35 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Francois Romieu @ 2013-07-19 6:11 UTC (permalink / raw)
To: Amit Uttamchandani; +Cc: netdev, linux-kernel
Amit Uttamchandani <auttamchandani@logicube.com> :
> Add poll controller function for velocity nic.
Thanks.
You did not state if it was tested. Was it ?
--
Ueimor
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] net/velocity: add poll controller function for velocity nic
2013-07-19 6:11 ` Francois Romieu
@ 2013-07-19 6:21 ` Amit Uttamchandani
0 siblings, 0 replies; 4+ messages in thread
From: Amit Uttamchandani @ 2013-07-19 6:21 UTC (permalink / raw)
To: Francois Romieu; +Cc: netdev, linux-kernel
On Fri, Jul 19, 2013 at 08:11:07AM +0200, Francois Romieu wrote:
> Amit Uttamchandani <auttamchandani@logicube.com> :
> > Add poll controller function for velocity nic.
>
> Thanks.
>
> You did not state if it was tested. Was it ?
>
Yes, tested with latest upstream kernel and latest -stable 3.2.y (3.2.48).
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] net/velocity: add poll controller function for velocity nic
2013-07-19 0:45 [PATCH 1/1] net/velocity: add poll controller function for velocity nic Amit Uttamchandani
2013-07-19 6:11 ` Francois Romieu
@ 2013-07-20 0:35 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2013-07-20 0:35 UTC (permalink / raw)
To: auttamchandani; +Cc: romieu, netdev, linux-kernel
From: Amit Uttamchandani <auttamchandani@logicube.com>
Date: Thu, 18 Jul 2013 17:45:22 -0700
> Add poll controller function for velocity nic.
>
> Signed-off-by: Amit Uttamchandani <auttamchandani@logicube.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-07-20 0:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-19 0:45 [PATCH 1/1] net/velocity: add poll controller function for velocity nic Amit Uttamchandani
2013-07-19 6:11 ` Francois Romieu
2013-07-19 6:21 ` Amit Uttamchandani
2013-07-20 0:35 ` David Miller
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).