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 <kraxel@redhat.com> Message-id: 20190522094702.17619-3-kraxel@redhat.com
This commit is contained in:
parent
7ed4657396
commit
65f14ab98d
|
@ -1459,6 +1459,9 @@ static void usb_host_handle_reset(USBDevice *udev)
|
||||||
if (!s->allow_guest_reset) {
|
if (!s->allow_guest_reset) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (udev->addr == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
trace_usb_host_reset(s->bus_num, s->addr);
|
trace_usb_host_reset(s->bus_num, s->addr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue