diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-01-29 12:23:40 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-30 11:22:35 +0300 |
commit | b97a31348379f7beed7664a8d4eab491e227c165 (patch) | |
tree | 484fcbd9a7d97738ebb322918d7f75c29c13d722 /drivers/usb/core/phy.h | |
parent | c9381e185fdcf86e9d7966d638c933894f87cdd7 (diff) | |
download | linux-b97a31348379f7beed7664a8d4eab491e227c165.tar.xz |
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/phy.h')
-rw-r--r-- | drivers/usb/core/phy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/core/phy.h b/drivers/usb/core/phy.h index 88a3c037e9df..dad564e2d2d4 100644 --- a/drivers/usb/core/phy.h +++ b/drivers/usb/core/phy.h @@ -16,6 +16,8 @@ struct usb_phy_roothub *usb_phy_roothub_alloc(struct device *dev); int usb_phy_roothub_init(struct usb_phy_roothub *phy_roothub); int usb_phy_roothub_exit(struct usb_phy_roothub *phy_roothub); +int usb_phy_roothub_set_mode(struct usb_phy_roothub *phy_roothub, + enum phy_mode mode); int usb_phy_roothub_power_on(struct usb_phy_roothub *phy_roothub); void usb_phy_roothub_power_off(struct usb_phy_roothub *phy_roothub); |