mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
usb: add usb host adapters exit trace
Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
53c30545fb
commit
d733f74c33
4 changed files with 9 additions and 0 deletions
|
@ -2473,6 +2473,8 @@ void usb_ehci_realize(EHCIState *s, DeviceState *dev, Error **errp)
|
|||
|
||||
void usb_ehci_unrealize(EHCIState *s, DeviceState *dev, Error **errp)
|
||||
{
|
||||
trace_usb_ehci_unrealize();
|
||||
|
||||
if (s->frame_timer) {
|
||||
timer_del(s->frame_timer);
|
||||
timer_free(s->frame_timer);
|
||||
|
|
|
@ -1260,6 +1260,8 @@ static void usb_uhci_exit(PCIDevice *dev)
|
|||
{
|
||||
UHCIState *s = DO_UPCAST(UHCIState, dev, dev);
|
||||
|
||||
trace_usb_uhci_exit();
|
||||
|
||||
if (s->frame_timer) {
|
||||
timer_del(s->frame_timer);
|
||||
timer_free(s->frame_timer);
|
||||
|
|
|
@ -3649,6 +3649,8 @@ static void usb_xhci_exit(PCIDevice *dev)
|
|||
int i;
|
||||
XHCIState *xhci = XHCI(dev);
|
||||
|
||||
trace_usb_xhci_exit();
|
||||
|
||||
for (i = 0; i < xhci->numslots; i++) {
|
||||
xhci_disable_slot(xhci, i + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue