On 11/03/11 07:01, hkran wrote: > On 11/02/2011 08:56 PM, Gerd Hoffmann wrote: >> Hi, >> >>>> static void usb_hub_detach(USBPort *port1) >>> pulled, In what cases, the usb hub will be suspended? and how to tell it >>> happened? thanks. >> The guest enables the remote-wakeup feature. 'lspci -v' (within the >> guest) shows it. >> >> cheers, >> Gerd >> > I use the param "-usb -usbdevice tablet" to start qemu and then usb_del > tablet via monitor console after getting qemu up. > I saw this by entering lsusb -v > > Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.10 > bDeviceClass 9 Hub > bDeviceSubClass 0 Unused > bDeviceProtocol 0 Full speed (or root) hub > bMaxPacketSize0 64 > idVendor 0x1d6b Linux Foundation > idProduct 0x0001 1.1 root hub > bcdDevice 2.06 > iManufacturer 3 Linux 2.6.32-131.0.15.el6.x86_64 uhci_hcd > iProduct 2 UHCI Host Controller > iSerial 1 0000:00:01.2 > .......................... > Hub Descriptor: > bLength 9 > bDescriptorType 41 > nNbrPorts 2 > wHubCharacteristic 0x000a > No power switching (usb 1.0) > Per-port overcurrent protection > bPwrOn2PwrGood 1 * 2 milli seconds > bHubContrCurrent 0 milli Ampere > DeviceRemovable 0x00 > PortPwrCtrlMask 0xff > Hub Port Status: > Port 1: 0000.0100 power > Port 2: 0000.0100 power > Device Status: 0x0003 > Self Powered > Remote Wakeup Enabled > > (It seems that the Remote-wakeup feature has been enabled) > There are two ports with the status "power", and I do not know how to > make it suspended yet. Can you help more ?
That is the root hub created by the linux kernel, not the hub emulated by qemu. If you hook up just a single device no hob is needed. cheers, Gerd