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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel