usb: dwc3: support runtime power management for rockchip platform
authorWu Liang feng <wulf@rock-chips.com>
Wed, 24 Aug 2016 07:08:19 +0000 (15:08 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 1 Sep 2016 03:57:54 +0000 (11:57 +0800)
commitc1dea417c78077390aecb8e8851b437d8e515a53
tree080ffd05bbf8b96aeebf34068b7e84924984feb1
parentf3c4a8082b16392520686bc44902d33fac59f422
usb: dwc3: support runtime power management for rockchip platform

This patch adds runtime power management support for rockchip platform.
It depends on extcon notifier to do runtime resume and runtime suspend.
And since the dwc3 core dev is the only child of dwc3 rockchip dev, so
we need to ensure dwc3 core dev enter runtime suspend befer put dwc3
rockchip dev in runtime suspend. And after do runtime resume dwc3 core
dev, the PM core will resume dwc3 rockchip dev prior to dwc3 core dev
resume. With this patch, we can power off USB3 power domain and disable
clocks in runtime suspend.

Change-Id: Ib529889a8603d12dcdce80e9e0716be44c028bd3
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/dwc3-rockchip.c