]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: usb: read hot plug only in host mode
authorRakesh Bodla <rbodla@nvidia.com>
Thu, 20 Sep 2012 06:41:39 +0000 (12:11 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:36:09 +0000 (12:36 -0700)
Hot plug data is available only in host mode. Guard hotplug
read with host mode.

Bug 1047763
Bug 1050193

Reviewed-on: http://git-master/r/133890
(cherry picked from commit 927cf3665a02d64e13102480aeaa1dbd46080031)

Change-Id: I1fdefc0642e63ab981b2d224bfe5c2f983241170
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143133
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Rebase-Id: Rf069d441f4bca50d302a3e3f793f0234abaeba5c

arch/arm/mach-tegra/tegra11x_usb_phy.c

index 6e98a78e1a39ffc200c9c0455a585ef5de8c3a29..aabf95fb36a1283079d20593386b211f9aad1d0d 100644 (file)
@@ -1395,7 +1395,7 @@ static int utmi_phy_power_off(struct tegra_usb_phy *phy)
 
        utmi_phy_pad_power_off(phy);
 
-       if (phy->pdata->u_data.host.hot_plug) {
+       if (phy->hot_plug) {
                bool enable_hotplug = true;
                /* if it is OTG port then make sure to enable hot-plug feature
                   only if host adaptor is connected, i.e id is low */