From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Oa5ev-0003od-M6 for mharc-grub-devel@gnu.org; Sat, 17 Jul 2010 07:34:21 -0400 Received: from [140.186.70.92] (port=42780 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oa5es-0003nT-4L for grub-devel@gnu.org; Sat, 17 Jul 2010 07:34:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oa5en-0005sR-7K for grub-devel@gnu.org; Sat, 17 Jul 2010 07:34:17 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:57954) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oa5en-0005sL-1Z for grub-devel@gnu.org; Sat, 17 Jul 2010 07:34:13 -0400 Received: by bwz9 with SMTP id 9so2064184bwz.0 for ; Sat, 17 Jul 2010 04:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=MkZrNxXl2tiavdhpdhD3lRG1Oi3bkgO0ML+DegcXEeU=; b=Mo6zCejvvBmUJG58D+bSCzM0s1YGRQRuS6C2EkWLaWceuTU1j1jdK2EK3GEvEd5MN5 ZjvrwtE1IXVMNDDA1YEBf9cZOEjty5ErebwnESCYWSWcvexLh9Xb1OjrsIJWNXA0HtZh lz+NIAzEpTsTAqJnXTRhdvl1myj/CVSeP2YJ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=C2uVivyfRnMfvq+BT7AecTNOklPuegABQVx7S1LEDMHBS8v8lkDyt7EqM1/fug8V3X 11LE0rsg3GfYqqR+ky4QZzEM4ASzBKio9ELWhyZcgXwcu4ONzRREltO7uuAaIpkAhFU6 qEW+ytCGCNycgIfuuDAEaF5fL7CJcY1RlZhBQ= Received: by 10.204.178.146 with SMTP id bm18mr1865324bkb.99.1279366451833; Sat, 17 Jul 2010 04:34:11 -0700 (PDT) Received: from debian.bg45.phnet ([81.62.122.32]) by mx.google.com with ESMTPS id a9sm15487454bky.23.2010.07.17.04.34.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Jul 2010 04:34:10 -0700 (PDT) Message-ID: <4C419529.5020600@gmail.com> Date: Sat, 17 Jul 2010 13:34:01 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: grub-devel@gnu.org References: <1277025716.4952.4.camel@pracovna> <4C28D186.5040406@gmail.com> <1278349907.4721.18.camel@pracovna> <4C3271CD.2010205@gmail.com> <1278457590.14675.35.camel@pracovna> <1278623502.4717.49.camel@pracovna> In-Reply-To: <1278623502.4717.49.camel@pracovna> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig08645D960ED40DBBA7C846E7" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [Patch] USB hot-plugging support - usb branch 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: Sat, 17 Jul 2010 11:34:19 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig08645D960ED40DBBA7C846E7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/08/2010 11:11 PM, Ale=C5=A1 Nesrsta wrote: > Hi, > > attached new patch includes improved hot-plug support. > It is also committed into usb branch (rev. 2428). > It should work now on UHCI, OHCI and also on non-root hubs. > > Could somebody test it ? > =20 Successfully tested on Yeeloong and merged into trunk. > (New plugged device should be accessible after "ls" command. > Disconnected devices remain listed but they are not working.) > > > Changed files: > bus/usb/ohci.c > bus/usb/uhci.c > bus/usb/usb.c > bus/usb/usbhub.c > include/grub/usb.h > include/grub/usbtrans.h > > > To do: > > - hot-plugging on OHCI is limited because of limited number of > "statically" allocated EDs: > -- number of EDs could be increased in ohci.c > -- de-allocation of EDs should be added in ohci.c > > =20 You can have at most 255 devices on one controller. The easiest way is to allocate enough EDs for 255 devices > - when device disconnect is detected on some port, related USB device > structures should be de-allocated > -- if disconnected device is hub, it is necessary to de-allocate also= > all devices possibly connected to this hub. > -- to have chance to do it, it is necessary to implement some > structures to know which USB device is connected to which port of which= > UHCI/OHCI device and non-root hub > -- to avoid problem in disk cache or somewhere else, it will be maybe= > better to keep de-allocated device numbers not usable in future even if= > related device is disconnected (i.e. if device "usb0" is disconnected, > no newly connected device can be named as "usb0". "ls" command should > not display disconnected devices.) > > =20 Agreed. > Regards > Ales > > =20 > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig08645D960ED40DBBA7C846E7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkxBlSkACgkQNak7dOguQgmA+AD/YSWI2Gik93PnBv0LAi753eT/ DH6QLiur/bv1Kqh225kA/jhnB9zGxsm6mZV5dqaXb6Lt5rZhCIPDolGDAhKtEKW7 =i+r/ -----END PGP SIGNATURE----- --------------enig08645D960ED40DBBA7C846E7--