From owner-cvs-all Tue Jul 4 4:28:46 2000 Delivered-To: cvs-all@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-51.dsl.snfc21.pacbell.net [63.202.177.51]) by hub.freebsd.org (Postfix) with ESMTP id D16EB37B550; Tue, 4 Jul 2000 04:28:42 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id EAA02559; Tue, 4 Jul 2000 04:34:29 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200007041134.EAA02559@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Poul-Henning Kamp Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys bus.h bus_private.h src/sys/kern subr_bus.c In-reply-to: Your message of "Mon, 03 Jul 2000 16:27:59 +0200." <6433.962634479@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Jul 2000 04:34:29 -0700 From: Mike Smith Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > If I decide to implement a "persistent device" model for a removeable > device, for instance to be able to do fall-over from one hardware > device to another, then it doesn't work that the softc is tied to > the newbus instance, since the drivers "logical" instance survives > the hardware going away. It should not. > Example: Hot-plug. My cPCI card fails, I pull it and plug another one > in, I will very likely not want to loose my softc in that case. Actually, you would very likely want to lose your softc (or at least rewrite it from scratch, which is the same thing), since there's no guarantee that the replacement device is going to be the same. Making device substitution work at this level would generally be a Bad Idea; it should be done further up, outside the device driver. > The "1-newbus-instance : 1-device-instance" assumption is a grave > mistake, and we shall not lock our selves down in a dogmatic > postulate about how the world is according to our perception, rather > we need to be flexible enough to handle all the weird shit (TM) > out there. This much is fair - I think the general feeling is, however, that your approach to this isn't right. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the taks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message