From d733f74c333184179770e4d5017366da4b449cce Mon Sep 17 00:00:00 2001 From: Gonglei Date: Wed, 4 Jun 2014 16:31:55 +0800 Subject: usb: add usb host adapters exit trace Signed-off-by: Gonglei Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-ehci.c | 2 ++ hw/usb/hcd-uhci.c | 2 ++ hw/usb/hcd-xhci.c | 2 ++ 3 files changed, 6 insertions(+) (limited to 'hw/usb') diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index 2aa06bb18b..bacb7ceac9 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -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); diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index 220115bc5a..3b3ebcda8b 100644 --- a/hw/usb/hcd-uhci.c +++ b/hw/usb/hcd-uhci.c @@ -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); diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index a9245d8c2a..bbe4c5fb85 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -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); } -- cgit v1.2.3