|
|
7711c0 |
From ea3cee9424ef12e8f1d6dda411efef4488f98936 Mon Sep 17 00:00:00 2001
|
|
|
7711c0 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
7711c0 |
Date: Mon, 3 Jun 2019 13:45:48 +0200
|
|
|
7711c0 |
Subject: [PATCH 5/9] usb: call reset handler before updating state
|
|
|
7711c0 |
MIME-Version: 1.0
|
|
|
7711c0 |
Content-Type: text/plain; charset=UTF-8
|
|
|
7711c0 |
Content-Transfer-Encoding: 8bit
|
|
|
7711c0 |
|
|
|
7711c0 |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
7711c0 |
Message-id: <20190603134550.30153-3-kraxel@redhat.com>
|
|
|
7711c0 |
Patchwork-id: 88447
|
|
|
7711c0 |
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 2/4] usb: call reset handler before updating state
|
|
|
7711c0 |
Bugzilla: 1710861
|
|
|
7711c0 |
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
That way the device reset handler can see what
|
|
|
7711c0 |
the before-reset state of the device is.
|
|
|
7711c0 |
|
|
|
7711c0 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
7711c0 |
Message-id: 20190522094702.17619-2-kraxel@redhat.com
|
|
|
7711c0 |
(cherry picked from commit 7ed4657396add28382081a15557c78cd480c1cf1)
|
|
|
7711c0 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
---
|
|
|
7711c0 |
hw/usb/core.c | 2 +-
|
|
|
7711c0 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
7711c0 |
|
|
|
7711c0 |
diff --git a/hw/usb/core.c b/hw/usb/core.c
|
|
|
7711c0 |
index 241ae66..07b67fb 100644
|
|
|
7711c0 |
--- a/hw/usb/core.c
|
|
|
7711c0 |
+++ b/hw/usb/core.c
|
|
|
7711c0 |
@@ -87,10 +87,10 @@ void usb_device_reset(USBDevice *dev)
|
|
|
7711c0 |
if (dev == NULL || !dev->attached) {
|
|
|
7711c0 |
return;
|
|
|
7711c0 |
}
|
|
|
7711c0 |
+ usb_device_handle_reset(dev);
|
|
|
7711c0 |
dev->remote_wakeup = 0;
|
|
|
7711c0 |
dev->addr = 0;
|
|
|
7711c0 |
dev->state = USB_STATE_DEFAULT;
|
|
|
7711c0 |
- usb_device_handle_reset(dev);
|
|
|
7711c0 |
}
|
|
|
7711c0 |
|
|
|
7711c0 |
void usb_wakeup(USBEndpoint *ep, unsigned int stream)
|
|
|
7711c0 |
--
|
|
|
7711c0 |
1.8.3.1
|
|
|
7711c0 |
|