]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MLK-9617-2 usb: gadget: set bcdOTG of OTG descriptor for gadget drivers
authorLi Jun <B47624@freescale.com>
Mon, 1 Sep 2014 07:44:15 +0000 (15:44 +0800)
committerLi Jun <jun.li@freescale.com>
Wed, 28 Jan 2015 03:08:37 +0000 (11:08 +0800)
This patch sets bcdOTG field of OTG descriptor for below 3 gadget drivers:
- ether
- mass storage
- serial
OTG and EH supplement release number in binary-coded decimal(i.e. 2.0 is 0200H).

Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Li Jun <b47624@freescale.com>
(cherry picked from commit a426ace68acd9b770ce3a609f92029782b8ca1d1)

drivers/usb/gadget/ether.c
drivers/usb/gadget/mass_storage.c
drivers/usb/gadget/serial.c

index e0722e9a843c697ef4ed92ff0991d5cdf6ac9def..b77946dd98bdd7226442788ac0b93fb888e46e3f 100644 (file)
@@ -179,6 +179,7 @@ static struct usb_otg_descriptor otg_descriptor = {
         * it would not be called "OTG" ...
         */
        .bmAttributes =         USB_OTG_SRP | USB_OTG_HNP,
+       .bcdOTG =               cpu_to_le16(0x0200),
 };
 
 static const struct usb_descriptor_header *otg_desc[] = {
index 1178aea9c5445d2a3a2b8384229cabb7cc2c3dc5..d08c86d88d8b5aba13cd97003f315eff09bbb375 100644 (file)
@@ -73,6 +73,7 @@ static struct usb_otg_descriptor otg_descriptor = {
         * it would not be called "OTG" ...
         */
        .bmAttributes =         USB_OTG_SRP | USB_OTG_HNP,
+       .bcdOTG =               cpu_to_le16(0x0200),
 };
 
 static const struct usb_descriptor_header *otg_desc[] = {
index 0c7b826e46fce556679aaf3983a35c1950045f80..51db0ee35b5a96357c558507aaf6fde521df418b 100644 (file)
@@ -87,6 +87,7 @@ static struct usb_otg_descriptor otg_descriptor = {
         * it would not be called "OTG" ...
         */
        .bmAttributes =         USB_OTG_SRP | USB_OTG_HNP,
+       .bcdOTG =               cpu_to_le16(0x0200),
 };
 
 static const struct usb_descriptor_header *otg_desc[] = {