Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-22 Thread Gerd Hoffmann
Hi, > After I add usb_wake like this in the function usb_hub_detach. the > problem can be fixed. > > static void usb_hub_detach(USBPort *port1) > { > USBHubState *s = port1->opaque; > USBHubPort *port = &s->ports[port1->index]; > > usb_wakeup(&s->dev); > ---

Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-09 Thread hkran
On 11/01/2011 10:56 PM, Gerd Hoffmann wrote: When attaching a new device we must send a wakeup request to the root hub, otherwise the guest will not notice the new device in case the usb hub is suspended. Signed-off-by: Gerd Hoffmann --- hw/usb-hub.c |1 + 1 files changed, 1 insertions(+)

Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-03 Thread hkran
On 11/03/2011 04:41 PM, Gerd Hoffmann wrote: 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 r

Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-03 Thread Gerd Hoffmann
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 -

Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-02 Thread hkran
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

Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-02 Thread Gerd Hoffmann
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

Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-02 Thread hkran
On 11/01/2011 10:56 PM, Gerd Hoffmann wrote: When attaching a new device we must send a wakeup request to the root hub, otherwise the guest will not notice the new device in case the usb hub is suspended. Signed-off-by: Gerd Hoffmann --- hw/usb-hub.c |1 + 1 files changed, 1 insertions(+)

[Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-01 Thread Gerd Hoffmann
When attaching a new device we must send a wakeup request to the root hub, otherwise the guest will not notice the new device in case the usb hub is suspended. Signed-off-by: Gerd Hoffmann --- hw/usb-hub.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/usb-hub.c b/hw