usb: dwc3: exynos5: Power-off VBUS during suspend.
authorTodd Broch <tbroch@chromium.org>
Wed, 19 Sep 2012 22:14:18 +0000 (15:14 -0700)
committerGerrit <chrome-bot@google.com>
Thu, 20 Sep 2012 05:44:07 +0000 (22:44 -0700)
commit04414063d8155ed25315793cfee4c5011bb2021a
tree50ec1937c50f29308485c1fc73e41be7dfe3bdcb
parentb9260458033b688fbf0f93450b81d69b411c9845
usb: dwc3: exynos5: Power-off VBUS during suspend.

Change de-asserts vbus_gpio on suspend and re-asserts on resume in
order to save power.  NOTE this change means no USB charging in
standby is supported.

BUG=chrome-os-partner:9156
TEST=manual
1. Boot device, login guest, ctrl-alt-t for shell
2. shell
3. sudo su
4. Measure USB3.0 VBUS is 5V
5. powerd_suspend
6. Measure USB3.0 VBUS is off
7. resume
8. Measure USB3.0 VBUS is 5V

~30mW of savings in suspend.

Change-Id: Iaeaadde8b041d731c5114ab7318e4b8d8caebef9
Signed-off-by: Todd Broch <tbroch@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/33642
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Ready: Doug Anderson <dianders@chromium.org>
drivers/usb/dwc3/dwc3-exynos.c