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: Wed, 28 Jul 2010 17:55:02 +0300
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/24/2010 09:15 PM, Aleš Nesrsta wrote:
> Yes, it is one of possible and simplest ways... In first try we can
> increase number of EDs to approx. 255 + 1 control and 2*255 bulk EDs per
> OHCI/UHCI controller. (We need one control ED and two bulk EDs per one
> mass storage device plus one control zero ED for new connected device.)
> I.e. currently we can simply change in ohci.c:
> #define GRUB_OHCI_CTRL_EDS 256
> #define GRUB_OHCI_BULK_EDS 510
> and it should be enough...
>
> But it will be better to finally implement also some ED de-allocating in
> OHCI. I want to try to implement device-port information into usbdevice
> structure and together with it add de-allocating of OHCI EDs - see
> below.
>
>   
Allocating and deallocating is relatively expensive to maintain. Usually
the benefit is far greater. In this case it's only about saving few KB
of memory. It's simply not worth it. Don't bother about it.
>> ...
>>     
>>> There is missing handling of disconnected devices. For this we will
>>>       
>> need
>>     
>>> to know on which port which device is attached - it is currently not
>>> known
>>>       
>> But it can be easily stored in usbdevice structure.
>>     
> I have similar idea, do you mean this structure ?
>
> usb.h: struct grub_usb_device
>
> (I am thinking how to simply implement recursive structure of USB bus -
> root hub, hubs, devices on hubs at any level... Exists some similar
> problems/structures somewhere in GRUB (to use the same or similar
> implementation or, at least, to be inspired) ?)
>
>   
I would use linked lists.
> But as I wrote in another today's e-mail to jonatan perry, I will
> probably too busy in next weeks/months, so it may take some longer
> time... ( BTW - What do you mean about EHCI driver and its priority in
> GRUB development ? But it is probably theme for another mail thread...)
>
>   
EHCI is important.
> 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]