[vortex] 3C556B and 2.4.0
Pekka Pessi
Pekka.Pessi@nokia.com
10 Jan 2001 12:25:41 +0200
Hi,
Adam Shand wrote:
>Right at the end of the driver could you please try the following?
>
>- outw(TotalReset, root_vortex_dev->base_addr + EL3_CMD);
>+ outw(TotalReset | 0x10, root_vortex_dev->base_addr + EL3_CMD);
I noticed that the following cures the problems with 3C556B on 2.4.0
kernel. I have no idea if it breaks everything else, however.
Pekka
--- 3c59x.c-virgin Tue Jan 9 16:12:47 2001
+++ 3c59x.c Tue Jan 9 16:13:18 2001
@@ -2572,7 +2572,7 @@
* here
*/
unregister_netdev(dev);
- outw(TotalReset, dev->base_addr + EL3_CMD);
+ outw(TotalReset | 0x10, dev->base_addr + EL3_CMD);
if (vp->must_free_region)
release_region(dev->base_addr, vp->io_size);
kfree(dev);
@@ -2623,7 +2623,7 @@
ioaddr = dev->base_addr;
unregister_netdev (dev);
- outw (TotalReset, ioaddr + EL3_CMD);
+ outw (TotalReset | 0x10, ioaddr + EL3_CMD);
release_region (ioaddr, VORTEX_TOTAL_SIZE);
tmp = dev;