Re: [PATCH 2/2] usb/dummy_hcd: add support for USB_DT_BOS on rh

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

 



On Sun, 19 Aug 2012, Sebastian Andrzej Siewior wrote:

> Without a reply for USB_DT_BOS the USB3 mode does not work since
> 448b6eb1 ("USB: Make sure to fetch the BOS desc for roothubs.).

This is fine except for one little thing...

> Cc: stable@xxxxxxxxxx #v3.5
> Signed-off-by: Sebastian Andrzej Siewior <sebastian@xxxxxxxxxxxxx>
> ---
>  drivers/usb/gadget/dummy_hcd.c |   33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 
> diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
> index 0e58a46..afdbb1c 100644
> --- a/drivers/usb/gadget/dummy_hcd.c
> +++ b/drivers/usb/gadget/dummy_hcd.c
> @@ -1916,6 +1916,27 @@ done:
>  	return retval;
>  }
>  
> +/* usb 3.0 root hub device descriptor */

This is a BOS descriptor and a capability descriptor, combined.  Not a 
device descriptor.

> +struct {
> +	struct usb_bos_descriptor bos;
> +	struct usb_ss_cap_descriptor ss_cap;
> +} __packed usb3_bos_desc = {
...

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux