mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-02 06:32:54 -10:00
usb-host: skip reset for untouched devices
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 <[email protected]> Message-id: [email protected]
This commit is contained in:
1 parent
7ed4657396
commit
65f14ab98d
1 file changed
+3
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user