From owner-freebsd-mobile Mon Mar 25 22: 6: 7 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 6E5A237B417 for ; Mon, 25 Mar 2002 22:06:04 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g2Q663i12329; Mon, 25 Mar 2002 23:06:03 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g2Q662f09361; Mon, 25 Mar 2002 23:06:02 -0700 (MST) (envelope-from imp@village.org) Date: Mon, 25 Mar 2002 23:05:44 -0700 (MST) Message-Id: <20020325.230544.99771943.imp@village.org> To: msergeant@looksmart.net Cc: mobile@FreeBSD.ORG Subject: Re: ATA flash card under 4-STABLE From: "M. Warner Losh" In-Reply-To: <1017055196.391.17.camel@xyzzy.intranet.snsonline.net> References: <20020325111715.GA4064@pir.net> <1017055196.391.17.camel@xyzzy.intranet.snsonline.net> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message: <1017055196.391.17.camel@xyzzy.intranet.snsonline.net> Mark Sergeant writes: : My two cents worth all the flash cards should be set to 0x1 or make the : "default" option smarter, took a wake up call from Warner before I : figured out it was the default that was causing issues. I agree with the latter more than the former. The rules should be: o Scan the CIS cfe list, in the order it appears on the card, for any 3.3V entry that we can allocate the resources for. o Scan all CIS cfe entries, in the order of the card, for any entry that we can allocate the resources for. Right now I think that we insert the cfes into a list that is backwards, and then take the first one in that list as the default. Note: There is a "default" bit, but that bit shouldn't be used to determine the "default" entry to use. The default bit means exactly "Make the items mentioned in this entry sticky for future cfes (eg the default if they aren't specified)". I don't have the time or incliniation at the moment to try to do this, but if someone else has that time or inclination, I'd love to review/test their patches. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message