[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/9] usb-host: skip reset for untouched devices
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 2/9] usb-host: skip reset for untouched devices |
Date: |
Wed, 29 May 2019 08:28:25 +0200 |
If the guest didn't talk to the device yet, skip the reset.
Without this usb-host devices get resetted a number of times
at boot time for no good reason.
Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden
---
hw/usb/host-libusb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index 67b7465915f5..4e9a45a5d26f 100644
--- a/hw/usb/host-libusb.c
+++ b/hw/usb/host-libusb.c
@@ -1459,6 +1459,9 @@ static void usb_host_handle_reset(USBDevice *udev)
if (!s->allow_guest_reset) {
return;
}
+ if (udev->addr == 0) {
+ return;
+ }
trace_usb_host_reset(s->bus_num, s->addr);
--
2.18.1
- [Qemu-devel] [PULL 0/9] Usb 20190529 patches, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 1/9] usb: call reset handler before updating state, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 2/9] usb-host: skip reset for untouched devices,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 4/9] usb-hub: tweak feature names, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 6/9] usb-hub: add helpers to update port state, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 3/9] usb-host: avoid libusb_set_configuration calls, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 7/9] usb-hub: add usb_hub_port_update(), Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 8/9] usb-hub: emulate per port power switching, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 5/9] usb-hub: make number of ports runtime-configurable, Gerd Hoffmann, 2019/05/29
- [Qemu-devel] [PULL 9/9] usb-tablet: fix serial compat property, Gerd Hoffmann, 2019/05/29
- Re: [Qemu-devel] [PULL 0/9] Usb 20190529 patches, Peter Maydell, 2019/05/30