usb: chipidea: msm: Handle phy power states
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:57:06 +0000 (14:57 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 20 Jan 2017 07:27:35 +0000 (15:27 +0800)
commit11893dae63da0f5b251cf7f9a24d64c8ff4771ff
tree9978a7acdaff564f565f3b82173d012f19f523a7
parent1b8fc5a5253d593daff68378444f8fc4bc50af1a
usb: chipidea: msm: Handle phy power states

The ULPI phy on qcom platforms needs to be initialized and
powered on after a USB reset and before we toggle the run/stop
bit. Otherwise, the phy locks up and doesn't work properly. Hook
the phy initialization into the RESET event and the phy power off
into the STOPPED event.

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
drivers/usb/chipidea/core.c
drivers/usb/chipidea/host.c
include/linux/usb/chipidea.h