From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [Patch] USB hot-plugging support - usb branch
Date: Sat, 17 Jul 2010 13:34:01 +0200 [thread overview]
Message-ID: <4C419529.5020600@gmail.com> (raw)
In-Reply-To: <1278623502.4717.49.camel@pracovna>
[-- Attachment #1: Type: text/plain, Size: 1959 bytes --]
On 07/08/2010 11:11 PM, Aleš 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 ?
>
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
>
>
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.)
>
>
Agreed.
> Regards
> Ales
>
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
next prev parent reply other threads:[~2010-07-17 11:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-20 9:21 [Patch] Simple USB hub support Aleš Nesrsta
2010-06-20 18:25 ` richardvoigt
2010-06-21 19:56 ` Aleš Nesrsta
2010-06-28 16:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-07-05 17:11 ` Aleš Nesrsta
2010-07-05 23:59 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-07-06 17:14 ` Aleš Nesrsta
2010-07-06 17:23 ` Colin Watson
2010-07-06 23:06 ` [Patch] USB hot-plugging support - usb branch Aleš Nesrsta
2010-07-08 21:11 ` Aleš Nesrsta
2010-07-17 11:34 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2010-07-17 11:38 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-07-24 18:15 ` Aleš Nesrsta
2010-07-28 14:55 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C419529.5020600@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.