projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da35f7f
)
usb: call reset handler before updating state
author
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 22 May 2019 09:47:00 +0000
(11:47 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 29 May 2019 05:03:56 +0000
(07:03 +0200)
That way the device reset handler can see what
the before-reset state of the device is.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id:
20190522094702
.17619-2-kraxel@redhat.com
hw/usb/core.c
patch
|
blob
|
history
diff --git
a/hw/usb/core.c
b/hw/usb/core.c
index 8fbd9c7d573b37e4a9e867a8d4b5c8c66122460c..3ab48a16074b04343156882bb3d644020d23c98b 100644
(file)
--- a/
hw/usb/core.c
+++ b/
hw/usb/core.c
@@
-87,10
+87,10
@@
void usb_device_reset(USBDevice *dev)
if (dev == NULL || !dev->attached) {
return;
}
+ usb_device_handle_reset(dev);
dev->remote_wakeup = 0;
dev->addr = 0;
dev->state = USB_STATE_DEFAULT;
- usb_device_handle_reset(dev);
}
void usb_wakeup(USBEndpoint *ep, unsigned int stream)