Re: PATCH: epic100 fix for 2.3.99-pre9 or 2.4.0-test1...

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Sat May 27 2000 - 14:15:37 EST


excellent! That output allowed me to solve the module unload problem
(fix patch attached).

After this patch is applied, can you tell me if you have any other
problems...

Regards,

        Jeff

-- 
Jeff Garzik              | Liberty is always dangerous, but
Building 1024            | it is the safest thing we have.
MandrakeSoft, Inc.       |      -- Harry Emerson Fosdick

Index: drivers/net/epic100.c =================================================================== RCS file: /g/cvslan/linux_2_3/drivers/net/epic100.c,v retrieving revision 1.1.1.20 diff -u -r1.1.1.20 epic100.c --- drivers/net/epic100.c 2000/05/13 16:15:13 1.1.1.20 +++ drivers/net/epic100.c 2000/05/27 19:14:08 @@ -389,6 +389,8 @@ printk(KERN_INFO "%s: %s at %#lx, IRQ %d, ", dev->name, ci->name, ioaddr, dev->irq); + pdev->driver_data = dev; + /* Bring the chip out of low-power mode. */ outl(0x4200, ioaddr + GENCTL); /* Magic?! If we don't set this bit the MII interface won't work. */ @@ -989,7 +991,7 @@ #endif ep->dirty_tx = dirty_tx; if (ep->tx_full - && cur_tx - dirty_tx < TX_RING_SIZE + 2) { + && cur_tx - dirty_tx < TX_RING_SIZE) { /* The ring is no longer full, clear tbusy. */ ep->tx_full = 0; netif_wake_queue(dev);

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:18 EST