DM USB: xHCI: refine logic of Disable Slot Command

Remove the changing operation for 'xdev->native_ports[].state' in
pci_xhci_cmd_disable_slot. The operation should not be done in this
funciton.

Tracked-On: #1589
Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com>
Reviewed-by: Liang Yang <liang3.yang@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Xiaoguang Wu 2018-10-25 12:39:11 +08:00 committed by wenlingz
parent e1e0d3047e
commit 4261ca223e
1 changed files with 0 additions and 1 deletions

View File

@ -1716,7 +1716,6 @@ pci_xhci_cmd_disable_slot(struct pci_xhci_vdev *xdev, uint32_t slot)
goto done;
}
xdev->native_ports[index].state = VPORT_ASSIGNED;
pci_xhci_dev_destroy(dev);
UPRINTF(LINF, "disable slot %d for native device %d-%s"
"\r\n", slot, di->path.bus,