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: Aleš Nesrsta
Subject: Re: [Patch] USB hot-plugging support - usb branch
Date: Thu, 08 Jul 2010 23:11:41 +0200

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 ?
(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

- 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.)

Regards
Ales

Attachment: usb_patch_hotplug_100708_0
Description: Text Data


reply via email to

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