UPSTREAM: phy: rockchip-typec: add pm runtime support
authorChris Zhong <zyw@rock-chips.com>
Wed, 7 Sep 2016 18:17:25 +0000 (11:17 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 8 Nov 2016 07:58:29 +0000 (15:58 +0800)
commitc0fb43a77ecc78dbf3f9057db1c0ed0e1fb44beb
treea8aa3530a5165c73d0b9b85443373d52226a7c68
parent143485ffe92f2eaa46a91fbab7e2b0be74b0f587
UPSTREAM: phy: rockchip-typec: add pm runtime support

Adds pm_runtime support for rockchip Type-C, so that power domain is
enabled only when there is a transaction going on to help save power.

BUG=chrome-os-partner:52872
TEST=Check DP display and USB3

Change-Id: I072fd06eaa4dfc4b4f598c4a6a3972ee458b833f
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
(cherry picked from git.kernel.org kishon/linux-phy.git next
 commit 15ab5499bd837b1d70287da747dc3d9762ab320a)
Reviewed-on: https://chromium-review.googlesource.com/382113
Reviewed-by: Brian Norris <briannorris@chromium.org>
drivers/phy/phy-rockchip-typec.c