diff options
author | Parirajan Muthalagu <parirajan.muthalagu@stericsson.com> | 2010-08-25 07:03:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:21:20 -0400 |
commit | 37b5801e16d2e192fe2b20f4af33aa8c6e8786f3 (patch) | |
tree | f38d8549d967faac894c6f1b7e861a7482a9a8c0 /include/linux/usb | |
parent | 90593899de83a6e6fdea563d058acd2f4334e3f9 (diff) |
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 da2ed77d3e8d..b0f7e9f57176 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h | |||
@@ -808,4 +808,14 @@ enum usb_device_state { | |||
808 | */ | 808 | */ |
809 | }; | 809 | }; |
810 | 810 | ||
811 | /*-------------------------------------------------------------------------*/ | ||
812 | |||
813 | /* | ||
814 | * As per USB compliance update, a device that is actively drawing | ||
815 | * more than 100mA from USB must report itself as bus-powered in | ||
816 | * the GetStatus(DEVICE) call. | ||
817 | * http://compliance.usb.org/index.asp?UpdateFile=Electrical&Format=Standard#34 | ||
818 | */ | ||
819 | #define USB_SELF_POWER_VBUS_MAX_DRAW 100 | ||
820 | |||
811 | #endif /* __LINUX_USB_CH9_H */ | 821 | #endif /* __LINUX_USB_CH9_H */ |