]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
commitee069fb1185895e725ad942c7a529f947e25166d
tree0aba6c381156e151d7153b79f2497c3cdce9259f
parent7fec3c25b773883bd50c4078bcccdd23d3dadeac
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