aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-xhci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb-xhci.c')
-rw-r--r--hw/usb-xhci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/usb-xhci.c b/hw/usb-xhci.c
index 37e887c431..7028338a28 100644
--- a/hw/usb-xhci.c
+++ b/hw/usb-xhci.c
@@ -2346,9 +2346,7 @@ static void xhci_port_write(XHCIState *xhci, uint32_t reg, uint32_t val)
/* write-1-to-start bits */
if (val & PORTSC_PR) {
DPRINTF("xhci: port %d reset\n", port);
- if (xhci->ports[port].port.dev) {
- usb_send_msg(xhci->ports[port].port.dev, USB_MSG_RESET);
- }
+ usb_device_reset(xhci->ports[port].port.dev);
portsc |= PORTSC_PRC | PORTSC_PED;
}
xhci->ports[port].portsc = portsc;