diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-01-29 10:23:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-30 09:22:35 +0100 |
commit | b97a31348379f7beed7664a8d4eab491e227c165 (patch) | |
tree | 484fcbd9a7d97738ebb322918d7f75c29c13d722 /drivers/usb/core/hcd.c | |
parent | c9381e185fdcf86e9d7966d638c933894f87cdd7 (diff) | |
download | linux-b97a31348379f7beed7664a8d4eab491e227c165.tar.gz linux-b97a31348379f7beed7664a8d4eab491e227c165.tar.bz2 linux-b97a31348379f7beed7664a8d4eab491e227c165.zip |
usb: core: comply to PHY framework
Current implementation of the USB core does not take into account the
new PHY framework. Correct the situation by adding a call to
phy_set_mode() before phy_power_on().
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/hcd.c')
-rw-r--r-- | drivers/usb/core/hcd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 015b126ce455..86f39e44f98a 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -2736,6 +2736,11 @@ int usb_add_hcd(struct usb_hcd *hcd, if (retval) return retval; + retval = usb_phy_roothub_set_mode(hcd->phy_roothub, + PHY_MODE_USB_HOST_SS); + if (retval) + goto err_usb_phy_roothub_power_on; + retval = usb_phy_roothub_power_on(hcd->phy_roothub); if (retval) goto err_usb_phy_roothub_power_on; |