]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
MUSB: PM cleanup
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 8 Sep 2006 07:48:43 +0000 (10:48 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 8 Sep 2006 07:48:43 +0000 (10:48 +0300)
commit88d7747b05ede027f8be94a316db275b28b3c705
tree5c769a0c46e2835423271ef55b4c0546ecadb9b7
parent3265510939d2f44266fe72b1070d6908e236b249
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 <dbrownell@users.sourceforge.net>
drivers/usb/musb/musb_gadget.c
drivers/usb/musb/musbdefs.h
drivers/usb/musb/plat_uds.c
drivers/usb/musb/tusb6010.c
drivers/usb/musb/tusb6010.h
include/linux/usb/musb.h