Re: [PATCH v3 01/22] usb: add usb_otg20_descriptor for OTG 2.0 and above

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

 




On Tue, 16 Jun 2015 14:51:51 +0800
Li Jun <jun.li@xxxxxxxxxxxxx> wrote:

> From: Macpaul Lin <macpaul@xxxxxxxxx>
> 
> OTG 2.0 introduces bcdOTG in otg descriptor to identify the OTG and EH
> supplement release number with which the OTG device is compliant, this
> patch adds structure usb_otg20_descriptor for OTG 2.0 and above.
> 
> Signed-off-by: Macpaul Lin <macpaul@xxxxxxxxx>
> Signed-off-by: Li Jun <jun.li@xxxxxxxxxxxxx>

Reviewed-by: Roger Quadros <rogerq@xxxxxx>

cheers,
-roger

> ---
>  include/uapi/linux/usb/ch9.h | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h
> index aa33fd1..aec6899 100644
> --- a/include/uapi/linux/usb/ch9.h
> +++ b/include/uapi/linux/usb/ch9.h
> @@ -674,6 +674,17 @@ struct usb_otg_descriptor {
>  	__u8  bmAttributes;	/* support for HNP, SRP, etc */
>  } __attribute__ ((packed));
>  
> +/* USB_DT_OTG (from OTG 2.0 supplement) */
> +struct usb_otg20_descriptor {
> +	__u8  bLength;
> +	__u8  bDescriptorType;
> +
> +	__u8  bmAttributes;	/* support for HNP, SRP and ADP, etc */
> +	__le16 bcdOTG;		/* OTG and EH supplement release number
> +				 * in binary-coded decimal(i.e. 2.0 is 0200H)
> +				 */
> +} __attribute__ ((packed));
> +
>  /* from usb_otg_descriptor.bmAttributes */
>  #define USB_OTG_SRP		(1 << 0)
>  #define USB_OTG_HNP		(1 << 1)	/* swap host/device roles */

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



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux