mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PATCH to non-working xirc2ps_cs.c driver (kernel 2.4.9)
@ 2001-09-19  0:16 Paul Sheer
  2001-09-24 13:48 ` PATCH to non-working xirc2ps_cs.c driver (kernel 2.4.10) Paul Sheer
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Sheer @ 2001-09-19  0:16 UTC (permalink / raw)
  To: linux-kernel, dahinds


This driver tries to do media detection, failing
even if the media type is forced. This patch skips
media detection if the media type is forced, which,
I believe, is the correct behaviour for cards like
mine, where the media detection does not seem to
work.


--- drivers/net/pcmcia/xirc2ps_cs.c.orig	Wed Apr 18 23:40:05 2001
+++ drivers/net/pcmcia/xirc2ps_cs.c	Wed Sep 19 01:03:06 2001
@@ -5,6 +5,10 @@
  * This driver supports various Xircom CreditCard Ethernet adapters
  * including the CE2, CE IIps, RE-10, CEM28, CEM33, CE33, CEM56,
  * CE3-100, CE3B, RE-100, REM10BT, and REM56G-100.
+ *
+ * 19Sep2001 - The CE3B-100 has problems with media detection. Use the
+ * option if_port=1 or if_port=4 to force 10BaseT or 100BaseT
respectively.
+ * Change by psheer@icon.co.za
  * 
  * Written originally by Werner Koch based on David Hinds' skeleton of the
  * PCMCIA driver.
@@ -1925,6 +1929,17 @@
     ioaddr_t ioaddr = dev->base_addr;
     unsigned control, status, linkpartner;
     int i;
+
+    if (if_port == 1) {
+	dev->if_port = 1;
+	local->probe_port = 0;
+	return 1;	/* force to 10BaseT */
+    }
+    if (if_port == 4) {
+	dev->if_port = 4;
+	local->probe_port = 0;
+	return 1;	/* force to 100BaseT */
+    }
 
     status = mii_rd(ioaddr,  0, 1);
     if ((status & 0xff00) != 0x7800)



-- 
Paul Sheer Consulting IT Services . . . Tel . . . +27 21 761 7224
Email . . . psheer@icon.co.za . . . . . . Pager . . . 088 0057266
Linux development, cryptography, recruitment,  support,  training
http://www.icon.co.za/~psheer . . . . http://rute.sourceforge.net
L I N U X . . . . . . . . . . . .  The Choice of a GNU Generation

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-10-17 20:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-19  0:16 PATCH to non-working xirc2ps_cs.c driver (kernel 2.4.9) Paul Sheer
2001-09-24 13:48 ` PATCH to non-working xirc2ps_cs.c driver (kernel 2.4.10) Paul Sheer
2001-10-17 20:30   ` PATCH to non-working xirc2ps_cs.c driver (kernel 2.4.12) Paul Sheer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®