diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2014-11-27 11:19:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-02 19:14:29 -0500 |
commit | 4801d4ea559440b7d63babdac1b1b43a13ac7562 (patch) | |
tree | 7ccc41aa098857bf0973eee257e89789f5f18b71 | |
parent | 69defe04ec825e42e0d719cca5a23f48b624bee9 (diff) |
xhci: clear extra bits from slot context when setting max exit latency
If we need to change the max exit latency with a Evaluate Context
command, we copy the old output slot context and use it as input
context for the command. This also copies the dev_state bits which
are supposed to be zero in the input slot context.
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/host/xhci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 033b46c470bd..0ea7e12d4765 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -4009,6 +4009,7 @@ static int __maybe_unused xhci_change_max_exit_latency(struct xhci_hcd *xhci, | |||
4009 | slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx); | 4009 | slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx); |
4010 | slot_ctx->dev_info2 &= cpu_to_le32(~((u32) MAX_EXIT)); | 4010 | slot_ctx->dev_info2 &= cpu_to_le32(~((u32) MAX_EXIT)); |
4011 | slot_ctx->dev_info2 |= cpu_to_le32(max_exit_latency); | 4011 | slot_ctx->dev_info2 |= cpu_to_le32(max_exit_latency); |
4012 | slot_ctx->dev_state = 0; | ||
4012 | 4013 | ||
4013 | xhci_dbg_trace(xhci, trace_xhci_dbg_context_change, | 4014 | xhci_dbg_trace(xhci, trace_xhci_dbg_context_change, |
4014 | "Set up evaluate context for LPM MEL change."); | 4015 | "Set up evaluate context for LPM MEL change."); |