usb: chipidea: move hw_phymode_configure() into probe
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 14 Aug 2013 09:43:56 +0000 (12:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 19:34:15 +0000 (12:34 -0700)
commit03779f05be6dfc48de99763f6c845a003e1e40f3
treec613f051b1eabc1dceb0a5f44c1b86430f0772dc
parent5bb3da0ec0c3e60c15656250120c110317746d23
usb: chipidea: move hw_phymode_configure() into probe

Currently hw_phymode_configure() is located inside hw_device_reset(), which is
only called by chipidea udc driver.

When operating in host mode, we also need to call hw_phymode_configure() in
order to properly configure the PHY mode, so move this function into probe.

After this change, USB Host1 port on mx53qsb board is functional.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Reviewed-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/core.c