aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorsujin119.kim <sujin119.kim@samsung.com>2011-10-05 16:20:44 +0900
committerDan Murphy <dmurphy@ti.com>2011-12-01 11:35:27 -0600
commit59fb6457967fcf32131597cfb05c347a6fa1ad76 (patch)
tree74657f9afd8b499bc8bcade36d3d004ed59310da /drivers/usb/gadget
parent0cff8cc522abea5e6e5ee775cbe33bfb26a080d5 (diff)
downloadkernel_samsung_espresso10-59fb6457967fcf32131597cfb05c347a6fa1ad76.zip
kernel_samsung_espresso10-59fb6457967fcf32131597cfb05c347a6fa1ad76.tar.gz
kernel_samsung_espresso10-59fb6457967fcf32131597cfb05c347a6fa1ad76.tar.bz2
USB: gadget: fix the usb configuration descriptor
For a self-powered device, the bMaxPower field in the configuration descriptor should be 50 (100mA). To set bMaxPower as 500mA, the self-power attribute needs to be removed. This is one of the requirements for the WHQL certification. Change-Id: I3a9a7f009a4af573d06eda6c4110a6b000e29028 Signed-off-by: sujin119.kim <sujin119.kim@samsung.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/android.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/android.c
index d109bfb..3632062 100644
--- a/drivers/usb/gadget/android.c
+++ b/drivers/usb/gadget/android.c
@@ -152,7 +152,7 @@ static struct usb_configuration android_config_driver = {
.label = "android",
.unbind = android_unbind_config,
.bConfigurationValue = 1,
- .bmAttributes = USB_CONFIG_ATT_ONE | USB_CONFIG_ATT_SELFPOWER,
+ .bmAttributes = USB_CONFIG_ATT_ONE,
.bMaxPower = 0xFA, /* 500ma */
};