]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a1f8fcf23ef199b39463e37938bf340e5c34c23
tree1d45dd8d07addd4a1ea85de080197f1f93b4ca43
parentcc303a9b079dea06df7ec6e96320a3278147daae
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