]> xenbits.xensource.com Git - seabios.git/commitdiff
xhci: Minor - add USB port type comments to xhci_hub_reset()
authorKevin O'Connor <kevin@koconnor.net>
Mon, 24 Aug 2015 13:50:30 +0000 (09:50 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 24 Aug 2015 15:06:48 +0000 (11:06 -0400)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/usb-xhci.c

index 7fc13c48c18b12a7c9c27017246af5ff33e4e9a0..173dff1e56b8268460bf2274d617ef8efa63d1fe 100644 (file)
@@ -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);