From: Robert Jarzmik Date: Sun, 25 Jan 2009 07:59:38 +0000 (-0800) Subject: USB: pxa27x_udc: add vbus_draw callback X-Git-Tag: v2.6.30-rc1~670^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee069fb1185895e725ad942c7a529f947e25166d;p=pandora-kernel.git 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 Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed