From 2fc20dc42cf4a3131fb65c12b2825cd5daa91e7e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 24 Aug 2015 09:50:30 -0400 Subject: xhci: Minor - add USB port type comments to xhci_hub_reset() Signed-off-by: Kevin O'Connor --- src/hw/usb-xhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hw/usb-xhci.c b/src/hw/usb-xhci.c index 7fc13c4..173dff1 100644 --- a/src/hw/usb-xhci.c +++ b/src/hw/usb-xhci.c @@ -354,9 +354,11 @@ xhci_hub_reset(struct usbhub_s *hub, u32 port) switch (xhci_get_field(portsc, XHCI_PORTSC_PLS)) { case PLS_U0: + // A USB3 port - no reset necessary. rc = speed_from_xhci[xhci_get_field(portsc, XHCI_PORTSC_SPEED)]; break; case PLS_POLLING: + // A USB2 port - perform device reset and wait for completion xhci_print_port_state(3, __func__, port, portsc); portsc |= XHCI_PORTSC_PR; writel(&xhci->pr[port].portsc, portsc); -- cgit v1.1