aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2015-08-24 09:50:30 -0400
committerKevin O'Connor <kevin@koconnor.net>2015-08-24 11:06:48 -0400
commit2fc20dc42cf4a3131fb65c12b2825cd5daa91e7e (patch)
tree008d37deb459770e438bc392a450c312ff6f808c
parent9f7b2362ef9d6f8e7de54c9d245778c575bd1b23 (diff)
downloadseabios-2fc20dc42cf4a3131fb65c12b2825cd5daa91e7e.zip
seabios-2fc20dc42cf4a3131fb65c12b2825cd5daa91e7e.tar.gz
seabios-2fc20dc42cf4a3131fb65c12b2825cd5daa91e7e.tar.bz2
xhci: Minor - add USB port type comments to xhci_hub_reset()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/hw/usb-xhci.c2
1 files changed, 2 insertions, 0 deletions
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);