Message ID | 20081121214812.b03d7166.komurojun-mbn@nifty.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
Komuro schrieb: > On Fri, 21 Nov 2008 00:46:57 +0100 > Cord Walter <cord.walter@gmx.de> wrote: > >> after noticing that my Netgear FA411 (PCMCIA-NIC) [1] stopped working with >> the release of the 2.6.25 kernel (sidux-version), > > You are right. My patch has a bug. > The patch below fixes this problem. > > By the way, > (1) Does your FA411 work properly with the pcnet_cs driver before? Yes, it worked until the 2.6.25 release. > (2) Please post the full-dmesg (axnet_cs). This is what I get from dmesg when plugging in the FA411: pccard: PCMCIA card inserted into slot 1 cs: memory probe 0xa0000000-0xa0ffffff: clean. pcmcia: registering new device pcmcia1.0 eth0: Asix AX88790: io 0x300, irq 3, hw_addr 00:09:5b:08:98:93 udev: renamed network interface eth0 to eth1 NET: Registered protocol family 17 Does this help? -cord
Hi! I just noticed that I still had a patch lying around by Komuro <komurojun-mbn@nifty.com> from back when I was troubleshooting my problems with the pcnet_cs/axnet_cs driver and my Netgear PCMCIA-NIC. Looks like a simple typo to me - I tested the patch with 2.6.28 kernel and it worked... bye, cord Komuro schrieb: > [PATCH] pcnet_cs:fix misuse of the equality operator. > > > pcnet_cs: > fix misuse of the equality operator. > > > Signed-off-by: Cord Walter <qord@cwalter.net> > Signed-off-by: Komuro <komurojun-mbn@nifty.com> > > --- > > --- linux-2.6.29-rc3/drivers/net/pcmcia/pcnet_cs.c.orig 2009-01-31 06:44:03.000000000 +0900 > +++ linux-2.6.29-rc3/drivers/net/pcmcia/pcnet_cs.c 2009-01-31 06:44:21.000000000 +0900 > @@ -586,7 +586,7 @@ static int pcnet_config(struct pcmcia_de > } > > if ((link->conf.ConfigBase == 0x03c0) > - && (link->manf_id == 0x149) && (link->card_id = 0xc1ab)) { > + && (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) { > printk(KERN_INFO "pcnet_cs: this is an AX88190 card!\n"); > printk(KERN_INFO "pcnet_cs: use axnet_cs instead.\n"); > goto failed; >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Now with properly formatted patch... [PATCH] pcnet_cs:fix misuse of the equality operator. pcnet_cs: fix misuse of the equality operator. Signed-off-by: Cord Walter <qord@cwalter.net> Signed-off-by: Komuro <komurojun-mbn@nifty.com> - --- - --- linux-2.6.29-rc3/drivers/net/pcmcia/pcnet_cs.c.orig 2009-01-31 06:44:03.000000000 +0900 +++ linux-2.6.29-rc3/drivers/net/pcmcia/pcnet_cs.c 2009-01-31 06:44:21.000000000 +0900 @@ -586,7 +586,7 @@ static int pcnet_config(struct pcmcia_de } if ((link->conf.ConfigBase == 0x03c0) - - && (link->manf_id == 0x149) && (link->card_id = 0xc1ab)) { + && (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) { printk(KERN_INFO "pcnet_cs: this is an AX88190 card!\n"); printk(KERN_INFO "pcnet_cs: use axnet_cs instead.\n"); goto failed; - -- Cord Walter email: cord.walter@gmx.de Weil es niemanden etwas angeht, dass ich nichts zu verbergen habe: http://www.gnupg.org/ http://www.truecrypt.org/ ...und überhaupt: http://www.FreiheitstattAngst.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmFbTUACgkQpYxkftnOwIocoACfYtnmxxXygIe4SSV7mgnqWLHa wFMAn21j8G+MqJGSsoqhd/dFNPIb2mYH =BAkg -----END PGP SIGNATURE----- -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Cord Walter <cord.walter@gmx.de> Date: Sun, 01 Feb 2009 10:36:53 +0100 > Now with properly formatted patch... ... > 06:44:03.000000000 +0900 > +++ linux-2.6.29-rc3/drivers/net/pcmcia/pcnet_cs.c 2009-01-31 > 06:44:21.000000000 +0900 > @@ -586,7 +586,7 @@ static int pcnet_config(struct pcmcia_de > } > > if ((link->conf.ConfigBase == 0x03c0) > - - && (link->manf_id == 0x149) && (link->card_id = 0xc1ab)) { > + && (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) { > printk(KERN_INFO "pcnet_cs: this is an AX88190 card!\n"); Still looks corrupted here. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] pcnet_cs:fix misuse of the equality operator. pcnet_cs: fix misuse of the equality operator. Signed-off-by: Cord Walter <qord@cwalter.net> Signed-off-by: Komuro <komurojun-mbn@nifty.com> --- --- linux-2.6.29-rc3/drivers/net/pcmcia/pcnet_cs.c.orig 2009-01-31 06:44:03.000000000 +0900 +++ linux-2.6.29-rc3/drivers/net/pcmcia/pcnet_cs.c 2009-01-31 06:44:21.000000000 +0900 @@ -586,7 +586,7 @@ static int pcnet_config(struct pcmcia_de } if ((link->conf.ConfigBase == 0x03c0) - && (link->manf_id == 0x149) && (link->card_id = 0xc1ab)) { + && (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) { printk(KERN_INFO "pcnet_cs: this is an AX88190 card!\n"); printk(KERN_INFO "pcnet_cs: use axnet_cs instead.\n"); goto failed; -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- linux-2.6.28-rc6/drivers/net/pcmcia/pcnet_cs.c.orig 2008-11-21 21:39:08.000000000 +0900 +++ linux-2.6.28-rc6/drivers/net/pcmcia/pcnet_cs.c 2008-11-21 21:39:24.000000000 +0900 @@ -587,7 +587,7 @@ static int pcnet_config(struct pcmcia_de } if ((link->conf.ConfigBase == 0x03c0) - && (link->manf_id == 0x149) && (link->card_id = 0xc1ab)) { + && (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) { printk(KERN_INFO "pcnet_cs: this is an AX88190 card!\n"); printk(KERN_INFO "pcnet_cs: use axnet_cs instead.\n"); goto failed;