[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/7] xhci: fix port status
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 7/7] xhci: fix port status |
Date: |
Fri, 2 Mar 2012 14:19:30 +0100 |
Don't signal port status change if the usb device isn't in attached
state. Happens with usb-host devices with the pass-through device
being plugged out at the host.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb-xhci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/usb-xhci.c b/hw/usb-xhci.c
index 8305489..e8f1b6e 100644
--- a/hw/usb-xhci.c
+++ b/hw/usb-xhci.c
@@ -2279,7 +2279,7 @@ static void xhci_update_port(XHCIState *xhci, XHCIPort
*port, int is_detach)
int nr = port->port.index + 1;
port->portsc = PORTSC_PP;
- if (port->port.dev && !is_detach) {
+ if (port->port.dev && port->port.dev->attached && !is_detach) {
port->portsc |= PORTSC_CCS;
switch (port->port.dev->speed) {
case USB_SPEED_LOW:
--
1.7.1
- [Qemu-devel] [PATCH 0/7] usb: packet pipelining, Gerd Hoffmann, 2012/03/02
- [Qemu-devel] [PATCH 4/7] usb-host: enable pipelineing for bulk endpoints., Gerd Hoffmann, 2012/03/02
- [Qemu-devel] [PATCH 1/7] uhci_fill_queue: zap debug printf, Gerd Hoffmann, 2012/03/02
- [Qemu-devel] [PATCH 2/7] usb: queue can have async packets, Gerd Hoffmann, 2012/03/02
- [Qemu-devel] [PATCH 7/7] xhci: fix port status,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 3/7] usb: add pipelining option to usb endpoints, Gerd Hoffmann, 2012/03/02
- [Qemu-devel] [PATCH 6/7] xhci: fix control xfers, Gerd Hoffmann, 2012/03/02
- [Qemu-devel] [PATCH 5/7] usb: add shortcut for control transfers, Gerd Hoffmann, 2012/03/02