]> git.baikalelectronics.ru Git - kernel.git/commit
USB: pxa27x_udc: add vbus_draw callback
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sun, 25 Jan 2009 07:59:38 +0000 (23:59 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:20:27 +0000 (16:20 -0700)
commit03feb1e86d9b6d9b414d64fb79dcaa70fbc4a0bf
tree0aba6c381156e151d7153b79f2497c3cdce9259f
parent39165f95b47b68e34db1ca51b835a692ed7b8a49
USB: pxa27x_udc: add vbus_draw callback

Add the vbus_draw() callback to inform the transceiver, if
it exists, how much current may be drawn. The decision is
taken on gadget driver side using the configuration chosen
by the host and its bMaxPower field.  Some systems can use
the host's VBUS supply to augment or recharge a battery.
(There's also a default of 100 mA for unconfigured devices,
or 8 mA if they're OTG devices.)

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/pxa27x_udc.c