diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2020-01-06 04:34:00 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-09 13:15:31 +0300 |
commit | 18bd8bff69f7fbc53903dba4a1c234a30a8fcbde (patch) | |
tree | 4f468d57864e14faf800f427b14b8ff9ab1397f0 /include/linux/usb/tegra_usb_phy.h | |
parent | 28d190ac437c675763f03b17407ea16c1dd8c613 (diff) | |
download | linux-18bd8bff69f7fbc53903dba4a1c234a30a8fcbde.tar.xz |
usb: phy: tegra: Keep track of power on-off state
The PHY driver should keep track of the enable state, otherwise enable
refcount is screwed if USB driver tries to enable PHY when it is already
enabled. This will be the case for ChipIdea and Tegra EHCI drivers once
PHY driver will gain support for the init/shutdown callbacks.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200106013416.9604-5-digetx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb/tegra_usb_phy.h')
-rw-r--r-- | include/linux/usb/tegra_usb_phy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/tegra_usb_phy.h b/include/linux/usb/tegra_usb_phy.h index 0c5c3ea8b2d7..3ae73bdc6245 100644 --- a/include/linux/usb/tegra_usb_phy.h +++ b/include/linux/usb/tegra_usb_phy.h @@ -78,6 +78,7 @@ struct tegra_usb_phy { bool is_ulpi_phy; int reset_gpio; struct reset_control *pad_rst; + bool powered_on; }; void tegra_usb_phy_preresume(struct usb_phy *phy); |