grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Patch] USB hot-plugging support - usb branch


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [Patch] USB hot-plugging support - usb branch
Date: Sat, 17 Jul 2010 13:34:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5

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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]