From 9ed3598f316e19972565b314ebe868ec2de17a46 Mon Sep 17 00:00:00 2001 From: Li Jun Date: Thu, 9 Jan 2014 10:25:55 +0800 Subject: [PATCH] MLK-9617-1 usb: otg: update otg descriptor definition for OTG and EH 2.0 Add one field bcdOTG for OTG and EH supplement release number in OTG descriptor according to On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification Revision 2.0 version 1.1a. Acked-by: Peter Chen Signed-off-by: Li Jun --- include/uapi/linux/usb/ch9.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h index aa33fd1b2d4f..c1856f3b5158 100644 --- a/include/uapi/linux/usb/ch9.h +++ b/include/uapi/linux/usb/ch9.h @@ -672,6 +672,12 @@ struct usb_otg_descriptor { __u8 bDescriptorType; __u8 bmAttributes; /* support for HNP, SRP, etc */ + __le16 bcdOTG; /* OTG and EH supplement release number + * in binary-coded decimal (i.e. 2.0 is 0200H). + * This field identifies the release of the + * OTG and EH supplement with which the device + * and its descriptors are compliant. + */ } __attribute__ ((packed)); /* from usb_otg_descriptor.bmAttributes */ -- 2.39.2