From owner-freebsd-usb@FreeBSD.ORG Tue Jun 6 07:58:35 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AE6416A6A5 for ; Tue, 6 Jun 2006 07:49:51 +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 C555243D49 for ; Tue, 6 Jun 2006 07:49:50 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [IPv6:::1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k567mIE7080500; Tue, 6 Jun 2006 01:48:18 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jun 2006 01:48:25 -0600 (MDT) Message-Id: <20060606.014825.232930089.imp@bsdimp.com> To: jhs@berklix.org From: "M. Warner Losh" In-Reply-To: <200606051201.k55C1NHd087760@fire.jhs.private> References: <200606051201.k55C1NHd087760@fire.jhs.private> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: garyj@jennejohn.org, freebsd-usb@freebsd.org Subject: Re: usbdevs "self powered" is misleading X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 07:58:41 -0000 In message: <200606051201.k55C1NHd087760@fire.jhs.private> "Julian Stacey" writes: : "self powered" is reported by 6.1-RELEASE usbdevs for my small external disc. : It seems a misnomer & should at most be "Can be self powered" ? : The disc housing has a socket to apply power, but was not plugged : in. (I don't even have a power supply for it). Disc was cabled : direct to laptop, not through a hub, & showed: : Controller /dev/usb1: : addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), : Intel(0x0000), rev 1.00 : port 1 addr 2: full speed, self powered, config 1, : USB 2.0 Storage Device(0x5621), vendor 0x0402(0x0402), rev 1.03 : When I added a USB-2 Hub (with hub power supply plugged in to 220V)" : Controller /dev/usb1: : addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), : Intel(0x0000), rev 1.00 : port 1 addr 2: full speed, self powered, config 1, : USB2.0 Hub Cont(0x0058), NEC Corporation(0x0409), rev 1.00 : port 1 addr 5: full speed, self powered, config 1, : USB 2.0 Storage Device(0x5621), vendor 0x0402(0x0402), rev 1.03 : Sometimes "self powered" seems correct though, as for eg: : - a GPS with battery inside. : - a USB2-IDE + 3.5" IDE disc + external 220V supply : Comments ? Self Powered just means that the device has told the hub it doesn't need any power. These are standard attributes of the device which the device reports. FreeBSD just reports these to the user. Warner