From owner-freebsd-current@FreeBSD.ORG Sat Apr 10 17:02:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCDA116A4CE for ; Sat, 10 Apr 2004 17:02:38 -0700 (PDT) Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 323CB43D46 for ; Sat, 10 Apr 2004 17:02:38 -0700 (PDT) (envelope-from scott@fishballoon.org) Received: from llama.fishballoon.org ([81.104.195.124]) by mta03-svc.ntlworld.comESMTP <20040410225817.QJPL21114.mta03-svc.ntlworld.com@llama.fishballoon.org>; Sat, 10 Apr 2004 23:58:17 +0100 Received: from scott by llama.fishballoon.org with local (Exim 4.30; FreeBSD) id 1BCRRD-0007V9-R4; Sat, 10 Apr 2004 23:58:59 +0100 Date: Sat, 10 Apr 2004 23:58:59 +0100 From: Scott Mitchell To: Pete Carss Message-ID: <20040410225858.GD25661@llama.fishballoon.org> References: <4078026A.9070907@mac.com> <20040410202404.GB25661@llama.fishballoon.org> <40786B83.5010603@mac.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <40786B83.5010603@mac.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.9-RELEASE-p4 i386 Sender: Scott Mitchell cc: freebsd-current@freebsd.org Subject: Re: Cisco driver stopped working with -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Apr 2004 00:02:38 -0000 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Apr 10, 2004 at 10:47:47PM +0100, Pete Carss wrote: > > This is what I got - note I assumed you meant not to set the two > variables I set previously?? Exactly what I needed. It looks like the driver is matching _any_ card passed to it... I should be glad more people haven't hit this yet :-( The attached patch should fix the problem - could you try building a new kernel with this patch and see if it works for you? ie: save the patch somewhere # cd /sys/dev/xe # patch < /tmp/if_xe_pccard.patch (or wherever you saved it) build/install/boot a new kernel as usual If you try inserting the Aironet with hw.xe.debug=2 again, you should get a lot of repetitions of "xe0: pccard_product_match", then nothing else from the xe driver. The right driver should then come along and claim the card. Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_xe_pccard.patch" Index: if_xe_pccard.c =================================================================== RCS file: /home/ncvs/src/sys/dev/xe/if_xe_pccard.c,v retrieving revision 1.16 diff -u -r1.16 if_xe_pccard.c --- if_xe_pccard.c 9 Apr 2004 17:34:54 -0000 1.16 +++ if_xe_pccard.c 10 Apr 2004 22:44:16 -0000 @@ -408,7 +408,7 @@ pccard_get_prodext(dev, &prodext); if (xpp->prodext != prodext) - vpfmatch--; + vpfmatch = 0; return (vpfmatch); } --dDRMvlgZJXvWKvBx--