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:
parent
e1e0d3047e
commit
4261ca223e
|
@ -1716,7 +1716,6 @@ pci_xhci_cmd_disable_slot(struct pci_xhci_vdev *xdev, uint32_t slot)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
xdev->native_ports[index].state = VPORT_ASSIGNED;
|
|
||||||
pci_xhci_dev_destroy(dev);
|
pci_xhci_dev_destroy(dev);
|
||||||
UPRINTF(LINF, "disable slot %d for native device %d-%s"
|
UPRINTF(LINF, "disable slot %d for native device %d-%s"
|
||||||
"\r\n", slot, di->path.bus,
|
"\r\n", slot, di->path.bus,
|
||||||
|
|
Loading…
Reference in New Issue