On Mon, Dec 03, 2012 at 07:59:55AM +0100, Gerd Hoffmann wrote: > Hi, > >> Gerd: In order for me to use this with the new-style Tegra2 model we >> will need to further move EHCISysBusState and the accompanying macros >> that this series adds into the hcd-ehci.h header so that it can be >> embedded into the SoC object. So if you're okay with my approach we'd >> need a v2. > >Looks good to me. Guess we want something simliar for UHCI ... > >> Also a question: Vincent's patch has a comment "multiple EHCI >> controllers support not ready". Is this still a known issue or resolved >> by now? > >I'm not aware of any. Hi Andreas,
I'm aware of it today. For example, xilinx_zynq has two EHCI controllers. If I specify a usb device of type "usb-storage", the question is: which EHCI controller does the usb device attach to? The answer is dependent. 1. If I use "usbdevice" and pass the host usb device, such as: $ qemu -usb -usbdevice host:xxxx:xxxx The device will attach to the first EHCI controller. 2. If I use "device" and "usb-storage", such as: $ qemu -usb -device usb-storage,drive=ud -drive id=ud,file=usbdisk.img,if=none The device will attach to the second EHCI controller. Qemu doesn't provide some properties, such as "bus", to specify which EHCI controller the usb device attach to. If we use "device" and "usb-storage", we never attach the usb device to the specified EHCI controller. Liming Wang > >cheers, > Gerd