Commit 181d303c authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman

usb: host: xhci: use new USB_RESUME_TIMEOUT

commit b9e45188 upstream.

Make sure we're using the new macro, so our
resume signaling will always pass certification.
Acked-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 38faf1a5
...@@ -1697,7 +1697,7 @@ static void handle_port_status(struct xhci_hcd *xhci, ...@@ -1697,7 +1697,7 @@ static void handle_port_status(struct xhci_hcd *xhci,
} else { } else {
xhci_dbg(xhci, "resume HS port %d\n", port_id); xhci_dbg(xhci, "resume HS port %d\n", port_id);
bus_state->resume_done[faked_port_index] = jiffies + bus_state->resume_done[faked_port_index] = jiffies +
msecs_to_jiffies(20); msecs_to_jiffies(USB_RESUME_TIMEOUT);
set_bit(faked_port_index, &bus_state->resuming_ports); set_bit(faked_port_index, &bus_state->resuming_ports);
mod_timer(&hcd->rh_timer, mod_timer(&hcd->rh_timer,
bus_state->resume_done[faked_port_index]); bus_state->resume_done[faked_port_index]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment