ArcNet and 2.6.8.1

From: Esben Nielsen
Date: Thu Sep 23 2004 - 10:10:46 EST


Hello,
I am trying to upgrade my labtop to 2.6.8.1. I have ArcNet COM20020
PCMCIA card. After editing /etc/pcmcia/config to make it know about the
module, it finds the com20020 with no problems but as soon as I try to
start the network device the ifconfig process crashes.

I have looked a bit at the code and compared it to 2.4.20 which I used
before (with my own patches which I have sent here to - among other things
- to make com20020_cs work).

Somebody (how do I find out whom???) have made an open function pointer
instead of the old open_close function pointer. The generic ArcNet
framework calls this function pointer into the more specialized drivers
when you start your device. But none of the specialized drivers do never
initialize the function pointer! I.e. when you start your arcnet device
you get a call to 0x0!

I fixed it by changing
lp->hw.open(dev);
to
if(lp->hw.open) {
lp->hw.open(dev);
}


Esben



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