Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=497f050c42e46a4b1f6a9bcd8827fa5d97fe1feb
Commit:     497f050c42e46a4b1f6a9bcd8827fa5d97fe1feb
Parent:     5bebf82fff53a96f330c0879ffe870bdf3aaeab6
Author:     Alexey Dobriyan <[EMAIL PROTECTED]>
AuthorDate: Wed May 9 18:52:35 2007 +0400
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Wed May 9 19:25:15 2007 -0400

    atl1: add netconsole support
    
    Copied from b44 driver, but it works:
    
    netconsole: device eth0 not up yet, forcing it
    atl1: eth0 link is up 100 Mbps full duplex
    netconsole: network logging started
    
    Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/atl1/atl1_main.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/drivers/net/atl1/atl1_main.c b/drivers/net/atl1/atl1_main.c
index d28f88b..78cf00f 100644
--- a/drivers/net/atl1/atl1_main.c
+++ b/drivers/net/atl1/atl1_main.c
@@ -2038,6 +2038,15 @@ static int atl1_close(struct net_device *netdev)
        return 0;
 }
 
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void atl1_poll_controller(struct net_device *netdev)
+{
+       disable_irq(netdev->irq);
+       atl1_intr(netdev->irq, netdev);
+       enable_irq(netdev->irq);
+}
+#endif
+
 /*
  * If TPD Buffer size equal to 0, PCIE DMAR_TO_INT
  * will assert. We do soft reset <0x1400=1> according
@@ -2190,6 +2199,9 @@ static int __devinit atl1_probe(struct pci_dev *pdev,
        netdev->do_ioctl = &atl1_ioctl;
        netdev->tx_timeout = &atl1_tx_timeout;
        netdev->watchdog_timeo = 5 * HZ;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+       netdev->poll_controller = atl1_poll_controller;
+#endif
        netdev->vlan_rx_register = atl1_vlan_rx_register;
        netdev->vlan_rx_add_vid = atl1_vlan_rx_add_vid;
        netdev->vlan_rx_kill_vid = atl1_vlan_rx_kill_vid;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to