]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: power_supply: Add runtime pm support
authorPhilip Yang <yang_philip@projectara.com>
Wed, 31 Aug 2016 03:11:18 +0000 (11:11 +0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 2 Sep 2016 12:13:39 +0000 (14:13 +0200)
commit4e013b64c1ee3a60438caa0df6bf79664e0272bc
tree0beb3ffb4af912f0bdf40329442a946d44bf68d3
parent6a57ddc97acb2a1d37ce94a237dc0fab2e5a3f5b
greybus: power_supply: Add runtime pm support

Modify Power_supply greybus driver to support runtime PM framework.

During charging state, the driver will block remote device of suspending,
and then enables runtime suspend when remote device is in none chargin
state.

Testing Done: Compiled and verified on EVT2, EVT2 1x2 GPB test module
              and Device class daughter board.

Signed-off-by: Philip Yang <yang_philip@projectara.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/power_supply.c