linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Sheer <psheer@icon.co.za>
To: linux-kernel@vger.kernel.org, dahinds@users.sourceforge.net
Subject: PATCH to non-working xirc2ps_cs.c driver (kernel 2.4.12)
Date: Wed, 17 Oct 2001 22:30:04 +0200	[thread overview]
Message-ID: <20011017223004.M258@cericon.cranzgot.co.za> (raw)
In-Reply-To: <20010919021654.G3768@cericon.cranzgot.co.za> <20010924154831.I28548@cericon.cranzgot.co.za>
In-Reply-To: <20010924154831.I28548@cericon.cranzgot.co.za>; from psheer@icon.co.za on Mon, Sep 24, 2001 at 15:48:31 +0200


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	Sun Sep 23 23:47:35 2001
+++ drivers/net/pcmcia/xirc2ps_cs.c	Mon Sep 24 14:43:05 2001
@@ -5,6 +5,11 @@
  * 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.
+ *
+ * 2000-09-24 <psheer@icon.co.za> The Xircom CE3B-100 may not
+ * autodetect the media properly. In this case use the
+ * if_port=1 (for 10BaseT) or if_port=4 (for 100BaseT) options
+ * to force the media type.
  * 
  * Written originally by Werner Koch based on David Hinds' skeleton of the
  * PCMCIA driver.
@@ -1925,6 +1930,12 @@
     ioaddr_t ioaddr = dev->base_addr;
     unsigned control, status, linkpartner;
     int i;
+
+    if (if_port == 4 || if_port == 1) { /* force 100BaseT or 10BaseT */
+	dev->if_port = if_port;
+	local->probe_port = 0;
+	return 1;
+    }
 
     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

      reply	other threads:[~2001-10-17 20:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Paul Sheer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011017223004.M258@cericon.cranzgot.co.za \
    --to=psheer@icon.co.za \
    --cc=dahinds@users.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).