qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 11/14] QEMU: Fill in PCI subsystem vendor id for usb


From: Amit Shah
Subject: [Qemu-devel] [PATCH 11/14] QEMU: Fill in PCI subsystem vendor id for usb-ohci
Date: Mon, 26 May 2008 13:36:50 +0300

The subsystem vendor ID shouldn't be 0x0 or 0xffff according
to the PCI spec

Signed-off-by: Amit Shah <address@hidden>
---
 qemu/hw/usb-ohci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/qemu/hw/usb-ohci.c b/qemu/hw/usb-ohci.c
index 68995b0..692d0ce 100644
--- a/qemu/hw/usb-ohci.c
+++ b/qemu/hw/usb-ohci.c
@@ -1655,8 +1655,8 @@ void usb_ohci_init_pci(struct PCIBus *bus, int num_ports, 
int devfn)
         return;
     }
 
-    ohci->pci_dev.config[0x00] = vid & 0xff;
-    ohci->pci_dev.config[0x01] = (vid >> 8) & 0xff;
+    ohci->pci_dev.config[0x00] = ohci->pci_dev.config[0x2c] = vid & 0xff;
+    ohci->pci_dev.config[0x01] = ohci->pci_dev.config[0x2d] = (vid >> 8) & 
0xff;
     ohci->pci_dev.config[0x02] = did & 0xff;
     ohci->pci_dev.config[0x03] = (did >> 8) & 0xff;
     ohci->pci_dev.config[0x09] = 0x10; /* OHCI */
-- 
1.5.5.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]