From: David Brownell Date: Fri, 8 Sep 2006 07:48:43 +0000 (+0300) Subject: MUSB: PM cleanup X-Git-Tag: v2.6.18-omap1~82 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88d7747b05ede027f8be94a316db275b28b3c705;p=pandora-kernel.git MUSB: PM cleanup Second pass over TUSB power related code: - Add new field in board-specific platform data, giving a nonzero floor to the amount of VBUS power that peripherals could draw; pass that to the platform code. - Implement the call letting gadget drivers say how much VBUS power their current configuration may draw, and use that to initialize appropriately (pure-peripheral vs OTG modes) on USB reset and disconnect. - Provide TUSB-specific hook into OTG transceiver logic to support that VBUS call; and _only_ change the VBUS usage through that call. - Remove obsolete comment and bitmask declarations. On one board I measured 36 mA (at 5.1V) coming from VBUS not the battery using the default gadget drivers in non-OTG TUSB configuration. Signed-off-by: David Brownell --- Reading git-diff-tree failed