From owner-freebsd-usb@FreeBSD.ORG Tue Jun 6 21:52:01 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 4CCE816D096 for ; Tue, 6 Jun 2006 21:42:54 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96C1043D48 for ; Tue, 6 Jun 2006 21:42:53 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A6894.dip.t-dialin.net [84.154.104.148]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id k56LgdmN047322; Tue, 6 Jun 2006 23:42:41 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id k56LgapR032435; Tue, 6 Jun 2006 23:42:37 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id k56LkXvC019523; Tue, 6 Jun 2006 23:46:33 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Message-Id: <200606062146.k56LkXvC019523@fire.jhs.private> To: mag@intron.ac, "M. Warner Losh" In-Reply-To: Message from mag@intron.ac of "Tue, 06 Jun 2006 20:13:25 +0800." <20060606133612.B981EF16EC@smtp.263.net> Date: Tue, 06 Jun 2006 23:46:33 +0200 From: "Julian H. Stacey" 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 21:52:02 -0000 > Julian Stacey wrote: > > "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 ? Warner wrote. > 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. -------- mag@intron.ac wrote: > Power supply current required by USB device is reported by USB > device itself. If you consider the "self powered" to be incorrect, > the fault should be owed to the USB device. Thanks, So my USB to IDE is lieing to FreeBSD. (I had wondered about that). The chip is labelled: ALi ("i' is lower case) M5621 A1 0338 TH05 XHFPAR00000I Search engines recognise "ALI M5621". Just for interest, I presume/hope other people with other chips have seen USB to IDE enclosures that don't lie ? (Caution opening: I blew my first box (with a different chip) with static by mistake !) -- Julian Stacey. Consultant Unix Net & Sys. Eng., Munich. http://berklix.com Mail in Ascii, HTML=spam. Ihr Rauch = mein allergischer Kopfschmerz.