xHCI: set link state
[deliverable/linux.git] / drivers / usb / host / xhci-ring.c
index d14f3fbe5762189e1148ccfd705ebcc85f721359..0ef4f20c7f41df104aebd2f0f01b20bdfd7d4afd 100644 (file)
@@ -1329,10 +1329,8 @@ static void handle_port_status(struct xhci_hcd *xhci,
 
                if (DEV_SUPERSPEED(temp)) {
                        xhci_dbg(xhci, "resume SS port %d\n", port_id);
-                       temp = xhci_port_state_to_neutral(temp);
-                       temp &= ~PORT_PLS_MASK;
-                       temp |= PORT_LINK_STROBE | XDEV_U0;
-                       xhci_writel(xhci, temp, port_array[faked_port_index]);
+                       xhci_set_link_state(xhci, port_array, faked_port_index,
+                                               XDEV_U0);
                        slot_id = xhci_find_slot_id_by_port(hcd, xhci,
                                        faked_port_index);
                        if (!slot_id) {
This page took 0.024006 seconds and 5 git commands to generate.