]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: usb: disable vbus while going to lp0
authorRohith Seelaboyina <rseelaboyina@nvidia.com>
Tue, 23 Apr 2013 13:14:57 +0000 (18:44 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:10:27 +0000 (13:10 -0700)
disable vbus while going to lp0

Bug 1274508

Change-Id: I1abed5ad250083aab1f06b26ddfbea37e5f0aec4
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/221578
(cherry picked from commit cb1267b81ec8651c268d107de452e997d1780933)
Reviewed-on: http://git-master/r/223343
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/usb/phy/phy-tegra-usb.c
include/linux/usb/tegra_usb_phy.h

index 34399ae944e785d4120696530cedbd3d0cded8e6..30c11facefe0659b85b4b2dc6df45c4dab26e081 100644 (file)
@@ -116,6 +116,12 @@ static void usb_host_vbus_enable(struct tegra_usb_phy *phy, bool enable)
        }
 }
 
+void tegra_usb_enable_vbus(struct tegra_usb_phy *phy, bool enable)
+{
+       usb_host_vbus_enable(phy, enable);
+}
+EXPORT_SYMBOL_GPL(tegra_usb_enable_vbus);
+
 int usb_phy_reg_status_wait(void __iomem *reg, u32 mask,
                                        u32 result, u32 timeout)
 {
index c012ad951a37f8d97a1fbcf27fb163c901a1c02e..d00fbe7f6aea37d827ebbded8c80402dc8fa09d5 100644 (file)
@@ -110,4 +110,6 @@ void tegra_usb_phy_memory_prefetch_on(struct tegra_usb_phy *phy);
 
 void tegra_usb_phy_memory_prefetch_off(struct tegra_usb_phy *phy);
 
+void tegra_usb_enable_vbus(struct tegra_usb_phy *phy, bool enable);
+
 #endif /* __TEGRA_USB_PHY_H */