From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 27 18:06:34 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44C1116A46C for ; Thu, 27 Apr 2006 18:06:34 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78AD043D72 for ; Thu, 27 Apr 2006 18:06:33 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k3RI3eRG062586; Thu, 27 Apr 2006 12:03:41 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 27 Apr 2006 12:03:57 -0600 (MDT) Message-Id: <20060427.120357.45157617.imp@bsdimp.com> To: zbeeble@gmail.com From: "M. Warner Losh" In-Reply-To: <5f67a8c40604270908j54fb2c8bh5f0732d857155142@mail.gmail.com> References: <44505BF1.80806@bitfreak.org> <5f67a8c40604270908h4fcd2c42p87b1d4bb78a4459c@mail.gmail.com> <5f67a8c40604270908j54fb2c8bh5f0732d857155142@mail.gmail.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-hackers@freebsd.org Subject: Re: Can kldload trigger pci bus rescan? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:06:34 -0000 In message: <5f67a8c40604270908j54fb2c8bh5f0732d857155142@mail.gmail.com> "Zaphod Beeblebrox" writes: : It would be cool if pccard and usb also reprobed when kldload ran. The usb : case is slightly more complex --- having (say) uscanner claim something that : ugen is currently claiming. PC Card has done so for years, OLDCARD and NEWCARD. In fact, you can even load and unload the bridge driver (cbb today, pcic in yesteryear) and the pccard bus driver. pccard works very hard to make sure that these things work. usb does also, but not in a manner that's useful. It does work with usb for simple devices when ugen isn't loaded into the kernel. However, the brain dead way that usb dollops out subdevices makes fixing it to work like rest of the system difficult... The port from NetBSD didn't take the time to make the device model match FreeBSD, but rather just shoe-horned it into the system. Warner