From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OQn6P-0005zE-SF for mharc-grub-devel@gnu.org; Mon, 21 Jun 2010 15:56:17 -0400 Received: from [140.186.70.92] (port=54212 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQn6M-0005yo-Hv for grub-devel@gnu.org; Mon, 21 Jun 2010 15:56:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQn6K-00051D-ST for grub-devel@gnu.org; Mon, 21 Jun 2010 15:56:14 -0400 Received: from smtp-out3.iol.cz ([194.228.2.91]:40365) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQn6K-000511-EQ for grub-devel@gnu.org; Mon, 21 Jun 2010 15:56:12 -0400 Received: from antivir5.iol.cz (unknown [192.168.30.212]) by smtp-out3.iol.cz (Postfix) with ESMTP id 4B9B9BC853D for ; Mon, 21 Jun 2010 19:56:09 +0000 (UTC) Received: from localhost (antivir5.iol.cz [127.0.0.1]) by antivir5.iol.cz (Postfix) with ESMTP id D7C8B28005 for ; Mon, 21 Jun 2010 21:56:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at iol.cz Received: from antivir5.iol.cz ([127.0.0.1]) by localhost (antivir5.iol.cz [127.0.0.1]) (amavisd-new, port 10224) with LMTP id lrhmVOtwHPVR for ; Mon, 21 Jun 2010 21:56:08 +0200 (CEST) Received: from port1.iol.cz (unknown [192.168.30.91]) by antivir5.iol.cz (Postfix) with ESMTP id 9F6E128007 for ; Mon, 21 Jun 2010 21:56:08 +0200 (CEST) X-SBRS: None X-SBRS-none: None X-RECVLIST: MTA-OUT-IOL X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4CACdhH0xVRnXk/2dsb2JhbAAHgxaBAc5EkRqBJYMGcASHGg Received: from 228.117.broadband3.iol.cz (HELO [192.168.6.160]) ([85.70.117.228]) by port1.iol.cz with ESMTP; 21 Jun 2010 21:56:08 +0200 From: =?UTF-8?Q?Ale=C5=A1?= Nesrsta To: The development of GNU GRUB In-Reply-To: References: <1277025716.4952.4.camel@pracovna> Content-Type: text/plain; charset=utf-8 Date: Mon, 21 Jun 2010 21:56:06 +0200 Message-Id: <1277150167.14815.28.camel@pracovna> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [Patch] Simple USB hub support X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2010 19:56:15 -0000 richardvoigt@gmail.com wrote: > On Sun, Jun 20, 2010 at 4:21 AM, Ale=C5=A1 Nesrsta w= rote: > > Hi, > > > > included patch should make USB hubs operational. > > > > It works in the same simple way as whole GRUB2 USB support, i.e. USB = hub > > and device must be connected to computer BEFORE uhci/ohci module is > > loaded. > > > > Note (mainly for Vladimir): > > Via hub are normally working also devices which I reported to be not > > functional on UHCI. So, from my point of view it looks like there is > > surely some problem in powering of UHCI root hubs on my computer. But= I > > still don't know why only some devices are sensitive to this problem > > (all of them are not big consumers of power). >=20 > When connected via USB-HS hub, even low-speed and full-speed devices > enumerate under the EHCI, not UHCI. So it's not surprising that the > behavior changes and the devices start working. >=20 > Can you verify the speed of the devices in question, and that the hub > is USB 2.0 high-speed? >=20 Yes, the hub is USB 2.0 high-speed. But I am still confused: My PC has EHCI-UHCI USB controllers (1x EHCI, 4x UHCI). GRUB2 supports UHCI only yet, i.e. EHCI is not touched by GRUB2, it is in some unknown state (maybe initialized in some way by BIOS - but it does not matter if I enable or disable it in BIOS). Now: 1. I connect device APACER USB flashdisk directly to USB port on PC and it works. APACER is USB 2.0 high-speed device (see lsusb at the end). 2. I connect another device - Alcor card reader directly to USB port on PC and it does not work. Alcor is USB 2.0 high-speed device (see lsusb at the end). 3. I connect Alcor via USB 2.0 high-speed hub to the same PC and it works... (Unfortunately I have no USB1.1 hub to try behavior in this case...) Both devices are USB 2.0 high-speed but one is working and second does not - where is the difference...? There are lsusb outputs of both devices from Linux (I see no significant differences, only MAxPower is different - but it is lower on device which is not working, so problem is probably not caused by overcurrent.): "Working" device - Apacer: Bus 005 Device 004: ID 1005:b113 Apacer Technology, Inc. Handy Steno 2.0/HT203 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0=20 bDeviceProtocol 0=20 bMaxPacketSize0 64 idVendor 0x1005 Apacer Technology, Inc. idProduct 0xb113 Handy Steno 2.0/HT203 bcdDevice 1.00 iManufacturer 1 =20 iProduct 2 USB FLASH DRIVE=20 iSerial 3 19771C0607E2 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0=20 bmAttributes 0x80 (Bus Powered) MaxPower 200mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0=20 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0=20 bDeviceProtocol 0=20 bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0000 (Bus Powered) "Not working" device - Alcor: Bus 005 Device 005: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0=20 bDeviceProtocol 0=20 bMaxPacketSize0 64 idVendor 0x058f Alcor Micro Corp. idProduct 0x6366 Multi Flash Reader bcdDevice 1.00 iManufacturer 1 Generic iProduct 2 Mass Storage Device iSerial 3 058F63666433 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0=20 bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0=20 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0=20 bDeviceProtocol 0=20 bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0000 (Bus Powered) Ales > > > > Best regards > > Ales > > > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > http://lists.gnu.org/mailman/listinfo/grub-devel > > > > >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel >=20