DM USB: xHCI: fix an logic error during USB reset
Should not set hci_address to zero during USB reset. Tracked-On: #2922 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
parent
b570755fd0
commit
8bd7b9beae
|
@ -1870,7 +1870,6 @@ pci_xhci_cmd_reset_device(struct pci_xhci_vdev *xdev, uint32_t slot)
|
||||||
else {
|
else {
|
||||||
dev->dev_slotstate = XHCI_ST_DEFAULT;
|
dev->dev_slotstate = XHCI_ST_DEFAULT;
|
||||||
|
|
||||||
dev->hci.hci_address = 0;
|
|
||||||
dev_ctx = pci_xhci_get_dev_ctx(xdev, slot);
|
dev_ctx = pci_xhci_get_dev_ctx(xdev, slot);
|
||||||
if (!dev_ctx) {
|
if (!dev_ctx) {
|
||||||
cmderr = XHCI_TRB_ERROR_SLOT_NOT_ON;
|
cmderr = XHCI_TRB_ERROR_SLOT_NOT_ON;
|
||||||
|
|
Loading…
Reference in New Issue