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

[PATCH v8 08/18] hw/usb/bus: Turn off the automatic hub by default



Every bus creator now sets auto_hub from its own property, or clears
it outright, so the value usb_bus_new() leaves there is never read.

Drop the line. A new bus then has no hub unless its controller asks
for one.

Suggested-by: Gerd Hoffmann <kraxel@xxxxxxxxxx>
Signed-off-by: Jamin Lin <jamin_lin@xxxxxxxxxxxxxx>
---
 hw/usb/bus.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/usb/bus.c b/hw/usb/bus.c
index 92f67de4fe..cd587db892 100644
--- a/hw/usb/bus.c
+++ b/hw/usb/bus.c
@@ -92,7 +92,6 @@ void usb_bus_new(USBBus *bus, size_t bus_size,
     qbus_set_bus_hotplug_handler(BUS(bus));
     bus->ops = ops;
     bus->busnr = next_usb_bus++;
-    bus->auto_hub = true;
     QTAILQ_INIT(&bus->free);
     QTAILQ_INIT(&bus->used);
     QTAILQ_INSERT_TAIL(&busses, bus, next);
-- 
2.43.0



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.