qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Large USB patch


From: Lonnie Mendez
Subject: Re: [Qemu-devel] Large USB patch
Date: Fri, 21 Apr 2006 13:06:02 -0500
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Lonnie Mendez wrote:

There is some funkiness going on with removing the device in the linux guest once attached. Not sure what it is yet.

  This problem is addressed in the attached patch.
--- a/qemu/hw/usb-uhci.c        2006-04-21 11:15:40.000000000 -0500
+++ b/qemu/hw/usb-uhci.c        2006-04-21 12:57:04.000000000 -0500
@@ -382,8 +392,9 @@
     } else {
         port = &s->ports[portnum];
         /* set connect status */
-        if (!(port->ctrl & UHCI_PORT_CCS)) {
-            port->ctrl |= UHCI_PORT_CCS | UHCI_PORT_CSC;
+        if (port->ctrl & UHCI_PORT_CCS) {
+            port->ctrl &= ~UHCI_PORT_CCS;
+            port->ctrl |= UHCI_PORT_CSC;
         }
         /* disable port */
         if (port->ctrl & UHCI_PORT_EN) {

reply via email to

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