Skip to content
Permalink
Browse files

DM: Fix minor issue of USB vendor ID

Provide a minor fix for following issue:
Emulated USB controller Vendor ID and Device ID are swapped.

Tracked-On: #3053
Signed-off-by: Arindam Roy <arindam.roy@intel.com>
Reviewed-by: Xu, Anthony <anthony.xu@intel.com>
  • Loading branch information...
rarindam authored and wenlingz committed May 22, 2019
1 parent 7e52067 commit 3d459dfddc934e711c7909f378e7c3cedf45c28e
Showing with 2 additions and 2 deletions.
  1. +2 −2 devicemodel/hw/pci/xhci.c
@@ -4036,8 +4036,8 @@ pci_xhci_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)

xdev->excap_ptr = excap_group_dft;

xdev->vid = XHCI_PCI_DEVICE_ID_DFLT;
xdev->pid = XHCI_PCI_VENDOR_ID_DFLT;
xdev->vid = XHCI_PCI_VENDOR_ID_DFLT;
xdev->pid = XHCI_PCI_DEVICE_ID_DFLT;

xdev->rtsregs.mfindex = 0;
clock_gettime(CLOCK_MONOTONIC, &xdev->mf_prev_time);

0 comments on commit 3d459df

Please sign in to comment.
You can’t perform that action at this time.