From owner-freebsd-current@FreeBSD.ORG Fri Aug 15 01:56:57 2003 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 E404437B401 for ; Fri, 15 Aug 2003 01:56:57 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5051943F85 for ; Fri, 15 Aug 2003 01:56:57 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfj3i.dialup.mindspring.com ([165.247.204.114] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19naO9-0003Dp-00; Fri, 15 Aug 2003 01:56:50 -0700 Message-ID: <3F3CA006.34B78D8D@mindspring.com> Date: Fri, 15 Aug 2003 01:55:34 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "M. Warner Losh" References: <1060185309.676.1.camel@Twoflower.liebende.de> <1060504397.777.15.camel@syrenna.deep-ocean.local> <20030814.223735.103163505.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a478de3929f986a164f887436c050b7bce666fa475841a1c7a350badd9bab72f9c350badd9bab72f9c cc: eaja@erols.com cc: freebsd-current@freebsd.org Subject: Re: usbd does not use detach 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: Fri, 15 Aug 2003 08:56:58 -0000 "M. Warner Losh" wrote: > These two are redundant. Devices can already ask the bridge driver if > the device is still present on the bus. Smart drivers already do > this, but most of the drivers in the tree are dumb. You also have to > deal with device disappearance in ISRs since it is possible for the > device to go away while the device is in the middle of the ISR. Some > bus technologies also allow interrupt entry when a card/device is > ejected. Another common case is to hibernate/sleep/suspend/whatever the machine, and then disconnect the device out from under it, and it not being there when the machine wakes back up. Almost all MP3 players and Palm devices have that issues (since the order of human operation is to shut off the machine, get the wallet and keys, grab the iPod (or whatever), and head out the door). -- Terry