netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add NETPOLL Support to SB1250 driver
@ 2006-09-27  1:59 Manish Lachwani
  2006-09-27 21:59 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Manish Lachwani @ 2006-09-27  1:59 UTC (permalink / raw)
  To: netdev; +Cc: jeff

[-- Attachment #1: Type: text/plain, Size: 100 bytes --]

Hello!

Attached patch adds NETPOLL support for the Sibyte Network driver.

Thanks,
Manish Lachwani

[-- Attachment #2: mips_sb1250_netpoll.patch --]
[-- Type: text/plain, Size: 1153 bytes --]

Source: MontaVista Software, Inc. | Manish Lachwani <mlachwani@mvista.com>

NETPOLL support for Sibyte MAC

 drivers/net/sb1250-mac.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+)

Index: linux-2.6.18/drivers/net/sb1250-mac.c
===================================================================
--- linux-2.6.18.orig/drivers/net/sb1250-mac.c
+++ linux-2.6.18/drivers/net/sb1250-mac.c
@@ -1128,6 +1128,17 @@ static void sbdma_fillring(sbmacdma_t *d
 	}
 }
 
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void sbmac_netpoll(struct net_device *netdev)
+{
+	struct sbmac_softc *sc = netdev_priv(netdev);
+	int irq = sc->sbm_dev->irq;
+
+	disable_irq(irq);
+	sbmac_intr(irq, netdev, NULL);
+	enable_irq(irq);
+}
+#endif
 
 /**********************************************************************
  *  SBDMA_RX_PROCESS(sc,d)
@@ -2402,6 +2413,9 @@ static int sbmac_init(struct net_device 
 	dev->watchdog_timeo     = TX_TIMEOUT;
 
 	dev->change_mtu         = sb1250_change_mtu;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+	dev->poll_controller = sbmac_netpoll;
+#endif
 
 	/* This is needed for PASS2 for Rx H/W checksum feature */
 	sbmac_set_iphdr_offset(sc);

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

* Re: [PATCH] Add NETPOLL Support to SB1250 driver
  2006-09-27  1:59 [PATCH] Add NETPOLL Support to SB1250 driver Manish Lachwani
@ 2006-09-27 21:59 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2006-09-27 21:59 UTC (permalink / raw)
  To: Manish Lachwani; +Cc: netdev

Manish Lachwani wrote:
> Hello!
> 
> Attached patch adds NETPOLL support for the Sibyte Network driver.
> 
> Thanks,
> Manish Lachwani
> 
> 
> ------------------------------------------------------------------------
> 
> Source: MontaVista Software, Inc. | Manish Lachwani <mlachwani@mvista.com>
> 
> NETPOLL support for Sibyte MAC


ACK patch, NAK patch format.

Most importantly, it uses attachments and doesn't include a 
Signed-off-by line.

Read Documentation/SubmittingPatches and 
http://linux.yyz.us/patch-format.html

	Jeff



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

end of thread, other threads:[~2006-09-27 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27  1:59 [PATCH] Add NETPOLL Support to SB1250 driver Manish Lachwani
2006-09-27 21:59 ` 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).