[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/3] usb: change VID/PID for usb-hub and usb-msd
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 2/3] usb: change VID/PID for usb-hub and usb-msd to prevent conflict |
Date: |
Tue, 01 Nov 2011 16:29:50 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
Am 01.11.2011 15:56, schrieb Gerd Hoffmann:
> From: Roy Tam <address@hidden>
>
> 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.
>
> Sign-off-by: Roy Tam <address@hidden>
Typo?
Andreas
> Signed-off-by: Gerd Hoffmann <address@hidden>
> ---
> hw/usb-hub.c | 4 ++--
> hw/usb-msd.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/hw/usb-hub.c b/hw/usb-hub.c
> index 7b47079..3eb0f1a 100644
> --- a/hw/usb-hub.c
> +++ b/hw/usb-hub.c
> @@ -127,8 +127,8 @@ static const USBDescDevice desc_device_hub = {
>
> static const USBDesc desc_hub = {
> .id = {
> - .idVendor = 0,
> - .idProduct = 0,
> + .idVendor = 0x0409,
> + .idProduct = 0x55aa,
> .bcdDevice = 0x0101,
> .iManufacturer = STR_MANUFACTURER,
> .iProduct = STR_PRODUCT,
> diff --git a/hw/usb-msd.c b/hw/usb-msd.c
> index 1a0815a..b734177 100644
> --- a/hw/usb-msd.c
> +++ b/hw/usb-msd.c
> @@ -162,8 +162,8 @@ static const USBDescDevice desc_device_high = {
>
> static const USBDesc desc = {
> .id = {
> - .idVendor = 0,
> - .idProduct = 0,
> + .idVendor = 0x46f4, /* CRC16() of "QEMU" */
> + .idProduct = 0x0001,
> .bcdDevice = 0,
> .iManufacturer = STR_MANUFACTURER,
> .iProduct = STR_PRODUCT,
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach, hkran, 2011/11/09
[Qemu-devel] [PATCH 2/3] usb: change VID/PID for usb-hub and usb-msd to prevent conflict, Gerd Hoffmann, 2011/11/01
- Re: [Qemu-devel] [PATCH 2/3] usb: change VID/PID for usb-hub and usb-msd to prevent conflict,
Andreas Färber <=
[Qemu-devel] [PATCH 3/3] usb-host: fix host close, Gerd Hoffmann, 2011/11/01
Re: [Qemu-devel] [PULL] usb patch queue, Anthony Liguori, 2011/11/01