usb: chipidea: Configure phy for appropriate mode
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 25 Jan 2017 22:32:43 +0000 (14:32 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 3 Feb 2017 08:48:33 +0000 (16:48 +0800)
commit490b63e6de63d13e82110f4cb5f1aa31dd27245a
tree1d45dd8d07addd4a1ea85de080197f1f93b4ca43
parent30a9566a4f6071ef159f83e18f8c15a66ee08c2d
usb: chipidea: Configure phy for appropriate mode

When the qcom chipidea controller is used with an extcon, we need
to signal device mode or host mode to the phy so it can configure
itself for the correct mode. This should be done after the phy is
powered up, so that the register writes work correctly. Add in
the appropriate phy_set_mode() call here.

Cc: 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/core.c