qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v2 9/9] usb: tag usb host controller as hotpluggable


From: arei.gonglei
Subject: [Qemu-devel] [PATCH v2 9/9] usb: tag usb host controller as hotpluggable
Date: Tue, 3 Jun 2014 18:54:24 +0800

From: Gonglei <address@hidden>

usb host controller should be able to support hotplug/unplug,
as the same as the other pci devices, which not enable
multifunction capability.

BTW, the qemu have not the capability to support
hotplug mulitfuncition pci devices at present.

Signed-off-by: Gonglei <address@hidden>
---
 hw/usb/hcd-ehci-pci.c | 1 -
 hw/usb/hcd-ohci.c     | 1 -
 hw/usb/hcd-uhci.c     | 1 -
 hw/usb/hcd-xhci.c     | 1 -
 4 files changed, 4 deletions(-)

diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c
index 115d9b5..319fbb9 100644
--- a/hw/usb/hcd-ehci-pci.c
+++ b/hw/usb/hcd-ehci-pci.c
@@ -156,7 +156,6 @@ static void ehci_class_init(ObjectClass *klass, void *data)
     k->exit = usb_ehci_pci_exit;
     k->class_id = PCI_CLASS_SERIAL_USB;
     k->config_write = usb_ehci_pci_write_config;
-    dc->hotpluggable = false;
     dc->vmsd = &vmstate_ehci_pci;
     dc->props = ehci_pci_properties;
 }
diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c
index b513a13..5dfcb6f 100644
--- a/hw/usb/hcd-ohci.c
+++ b/hw/usb/hcd-ohci.c
@@ -2121,7 +2121,6 @@ static void ohci_pci_class_init(ObjectClass *klass, void 
*data)
     set_bit(DEVICE_CATEGORY_USB, dc->categories);
     dc->desc = "Apple USB Controller";
     dc->props = ohci_pci_properties;
-    dc->hotpluggable = false;
     dc->vmsd = &vmstate_ohci;
 }
 
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
index 4697a2d..7f0d447 100644
--- a/hw/usb/hcd-uhci.c
+++ b/hw/usb/hcd-uhci.c
@@ -1334,7 +1334,6 @@ static void uhci_class_init(ObjectClass *klass, void 
*data)
     k->device_id = info->device_id;
     k->revision  = info->revision;
     k->class_id  = PCI_CLASS_SERIAL_USB;
-    dc->hotpluggable = false;
     dc->vmsd = &vmstate_uhci;
     dc->props = uhci_properties;
     set_bit(DEVICE_CATEGORY_USB, dc->categories);
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index da8a1fb..c3ffa2f 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -3848,7 +3848,6 @@ static void xhci_class_init(ObjectClass *klass, void 
*data)
     dc->vmsd    = &vmstate_xhci;
     dc->props   = xhci_properties;
     dc->reset   = xhci_reset;
-    dc->hotpluggable   = false;
     set_bit(DEVICE_CATEGORY_USB, dc->categories);
     k->init         = usb_xhci_initfn;
     k->exit         = usb_xhci_exit;
-- 
1.7.12.4





reply via email to

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