mirror of https://gitlab.com/qemu-project/qemu
usb: change VID/PID for usb-hub and usb-msd to prevent conflict
Some USB drivers, for example USBASPI.SYS, will skip different type of device which has same VID/PID. The following patch helps preventing usb-msd being skipped by the driver. Signed-off-by: Roy Tam <roytam@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
4a33a9ea06
commit
db80358a20
|
@ -127,8 +127,8 @@ static const USBDescDevice desc_device_hub = {
|
||||||
|
|
||||||
static const USBDesc desc_hub = {
|
static const USBDesc desc_hub = {
|
||||||
.id = {
|
.id = {
|
||||||
.idVendor = 0,
|
.idVendor = 0x0409,
|
||||||
.idProduct = 0,
|
.idProduct = 0x55aa,
|
||||||
.bcdDevice = 0x0101,
|
.bcdDevice = 0x0101,
|
||||||
.iManufacturer = STR_MANUFACTURER,
|
.iManufacturer = STR_MANUFACTURER,
|
||||||
.iProduct = STR_PRODUCT,
|
.iProduct = STR_PRODUCT,
|
||||||
|
|
|
@ -162,8 +162,8 @@ static const USBDescDevice desc_device_high = {
|
||||||
|
|
||||||
static const USBDesc desc = {
|
static const USBDesc desc = {
|
||||||
.id = {
|
.id = {
|
||||||
.idVendor = 0,
|
.idVendor = 0x46f4, /* CRC16() of "QEMU" */
|
||||||
.idProduct = 0,
|
.idProduct = 0x0001,
|
||||||
.bcdDevice = 0,
|
.bcdDevice = 0,
|
||||||
.iManufacturer = STR_MANUFACTURER,
|
.iManufacturer = STR_MANUFACTURER,
|
||||||
.iProduct = STR_PRODUCT,
|
.iProduct = STR_PRODUCT,
|
||||||
|
|
Loading…
Reference in New Issue