From: Macpaul Lin <macp...@gmail.com>

OTG 2.0 introduces bcdOTG to identify the OTG and EH supplement release
number with which the OTG device is compliant, so adds it for
usb_otg_descriptor.

Signed-off-by: Macpaul Lin <macp...@gmail.com>
Signed-off-by: Li Jun <jun...@freescale.com>
---
 include/uapi/linux/usb/ch9.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h
index aa33fd1..ce405fb 100644
--- a/include/uapi/linux/usb/ch9.h
+++ b/include/uapi/linux/usb/ch9.h
@@ -665,13 +665,17 @@ struct usb_qualifier_descriptor {
 
 
 /*-------------------------------------------------------------------------*/
+struct bcdOTG {
+       __le16 bcdOTG;
+};
 
-/* USB_DT_OTG (from OTG 1.0a supplement) */
+/* USB_DT_OTG */
 struct usb_otg_descriptor {
        __u8  bLength;
        __u8  bDescriptorType;
 
        __u8  bmAttributes;     /* support for HNP, SRP, etc */
+       struct bcdOTG otg_rev[0];
 } __attribute__ ((packed));
 
 /* from usb_otg_descriptor.bmAttributes */
-- 
1.9.1

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

Reply via email to