usb: chipidea: msm: Mark device as runtime pm active
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:56:58 +0000 (14:56 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 20 Jan 2017 07:25:31 +0000 (15:25 +0800)
commit2c8ea46d3e5462c54120f6bca42e2ccee4e48904
tree5c1fe7c9ed1be587c419c32ccbe37660bdfc8769
parentc3b674a04b8ab62a1d35e86714d466af0a0ecc18
usb: chipidea: msm: Mark device as runtime pm active

We're not properly marking the glue layer/wrapper device as
runtime active, so runtime PM believes that the hardware state is
inactive when we call pm_runtime_enable() in this driver. This
causes a problem when the glue layer has a power domain
associated with it, because runtime PM will go and disable the
power domain to match the 'inactive' state of the device. Let's
mark the device as active so that runtime PM doesn't improperly
power down this device when it's actually active.

Acked-by: Peter Chen <peter.chen@nxp.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_msm.c