|
@@ -1092,12 +1092,12 @@ static void xhci_handle_cmd_reset_ep(struct xhci_hcd *xhci, int slot_id,
|
|
|
}
|
|
|
|
|
|
static void xhci_handle_cmd_enable_slot(struct xhci_hcd *xhci, int slot_id,
|
|
|
- u32 cmd_comp_code)
|
|
|
+ struct xhci_command *command, u32 cmd_comp_code)
|
|
|
{
|
|
|
if (cmd_comp_code == COMP_SUCCESS)
|
|
|
- xhci->slot_id = slot_id;
|
|
|
+ command->slot_id = slot_id;
|
|
|
else
|
|
|
- xhci->slot_id = 0;
|
|
|
+ command->slot_id = 0;
|
|
|
}
|
|
|
|
|
|
static void xhci_handle_cmd_disable_slot(struct xhci_hcd *xhci, int slot_id)
|
|
@@ -1366,7 +1366,7 @@ static void handle_cmd_completion(struct xhci_hcd *xhci,
|
|
|
cmd_type = TRB_FIELD_TO_TYPE(le32_to_cpu(cmd_trb->generic.field[3]));
|
|
|
switch (cmd_type) {
|
|
|
case TRB_ENABLE_SLOT:
|
|
|
- xhci_handle_cmd_enable_slot(xhci, slot_id, cmd_comp_code);
|
|
|
+ xhci_handle_cmd_enable_slot(xhci, slot_id, cmd, cmd_comp_code);
|
|
|
break;
|
|
|
case TRB_DISABLE_SLOT:
|
|
|
xhci_handle_cmd_disable_slot(xhci, slot_id);
|