From owner-freebsd-current@FreeBSD.ORG Sat Jul 16 19:18:59 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 E546316A41F for ; Sat, 16 Jul 2005 19:18:59 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.village.org (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34F9843D48 for ; Sat, 16 Jul 2005 19:18:59 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.3) with ESMTP id j6GJGIOp032108; Sat, 16 Jul 2005 13:16:18 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 16 Jul 2005 13:17:01 -0600 (MDT) Message-Id: <20050716.131701.124866666.imp@bsdimp.com> To: harrycoin@qconline.com From: "M. Warner Losh" In-Reply-To: <20050716.125824.48530425.imp@bsdimp.com> References: <20050716.113059.82101301.imp@bsdimp.com> <4.3.2.7.2.20050716124022.01f08460@mail.qconline.com> <20050716.125824.48530425.imp@bsdimp.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, nate@root.org Subject: Re: mss.c pcm fix to ' attach returned 6 ' load failure for v5.x acpi and up X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 16 Jul 2005 19:19:00 -0000 Nate writes: > I really think the driver is broken and the API is fine for this. I > don't like the hack of returning a random CID for checks against the > HID. Drivers down the road may come to rely on this and then every BIOS > that has a different order for CIDs becomes a potential breakage point. They alredy do rely on this. When they support pnp, they call the ISA_PNP_PROBE routine. When they don't then your observation doesn't matter because the order of the IDs doesn't matter: their non-zeroness does. > Drivers should not rely on isa_get_logicalid() to determine a boolean > "is PNP?" Actually, that's the interface. We have to follow it, even if you think it is stupid. It is how we do things. When we don't have a logicalid, we return 0. When drivers don't support pnp devices, it uses the existance of a non-zero pnpid to know the device isn't for them. It has been this way since 3.0. Warner