diff options
author | Parirajan Muthalagu <parirajan.muthalagu@stericsson.com> | 2010-08-25 16:33:26 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 10:21:20 -0700 |
commit | 37b5801e16d2e192fe2b20f4af33aa8c6e8786f3 (patch) | |
tree | f38d8549d967faac894c6f1b7e861a7482a9a8c0 /include/linux/usb | |
parent | 90593899de83a6e6fdea563d058acd2f4334e3f9 (diff) | |
download | kernel_samsung_crespo-37b5801e16d2e192fe2b20f4af33aa8c6e8786f3.zip kernel_samsung_crespo-37b5801e16d2e192fe2b20f4af33aa8c6e8786f3.tar.gz kernel_samsung_crespo-37b5801e16d2e192fe2b20f4af33aa8c6e8786f3.tar.bz2 |
USB Gadget: Verify VBUS current before setting the device self-powered bit
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Praveena Nadahally <praveen.nadahally@stericsson.com>
Signed-off-by: Parirajan Muthalagu <parirajan.muthalagu@stericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/ch9.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index da2ed77..b0f7e9f 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h @@ -808,4 +808,14 @@ enum usb_device_state { */ }; +/*-------------------------------------------------------------------------*/ + +/* + * As per USB compliance update, a device that is actively drawing + * more than 100mA from USB must report itself as bus-powered in + * the GetStatus(DEVICE) call. + * http://compliance.usb.org/index.asp?UpdateFile=Electrical&Format=Standard#34 + */ +#define USB_SELF_POWER_VBUS_MAX_DRAW 100 + #endif /* __LINUX_USB_CH9_H */ |