mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
usb: gadget: Allow up to 900mA current draw for SuperSpeed
Currently 500mA is used as max allowable current to draw over USB VBUS. However in SuperSpeed a gadget may draw up to 900mA Update the CONFIG_USB_GADGET_VBUS_DRAW's allowable range to be up to 900. Change-Id: I781308065b30b260437f7b3180e276f6a657f504 Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
This commit is contained in:
parent
dabe161962
commit
e1258ce10e
1 changed files with 5 additions and 3 deletions
|
|
@ -97,8 +97,8 @@ config USB_GADGET_DEBUG_FS
|
|||
to conserve kernel memory, say "N".
|
||||
|
||||
config USB_GADGET_VBUS_DRAW
|
||||
int "Maximum VBUS Power usage (2-500 mA)"
|
||||
range 2 500
|
||||
int "Maximum VBUS Power usage (2-900 mA)"
|
||||
range 2 900
|
||||
default 2
|
||||
help
|
||||
Some devices need to draw power from USB when they are
|
||||
|
|
@ -107,7 +107,9 @@ config USB_GADGET_VBUS_DRAW
|
|||
such as an AC adapter or batteries.
|
||||
|
||||
Enter the maximum power your device draws through USB, in
|
||||
milliAmperes. The permitted range of values is 2 - 500 mA;
|
||||
milliAmperes. The permitted range of values depends on the
|
||||
connected speed: for SuperSpeed and up it is 2 - 900 mA, but
|
||||
connections at High Speed or slower will be capped at 500 mA;
|
||||
0 mA would be legal, but can make some hosts misbehave.
|
||||
|
||||
This value will be used except for system-specific gadget
|
||||
|
|
|
|||
Loading…
Reference in a new issue