summaryrefslogtreecommitdiff
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorPrashant Gaikwad <pgaikwad@nvidia.com>2013-10-28 10:16:57 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2013-10-28 23:21:29 -0700
commitc13e1773d3d6e973f95769b3555ab0fb868132ef (patch)
treee10cd3164f6b0089a1cf931364b01c7c3cbdd774 /drivers/usb/phy
parent58119fe0a249f146a3602468680c254d61f073cd (diff)
usb: tegra: do not increase rtpm reference on device connect
RTPM is handled by USB core driver and device is runtime suspended after some idle time. If reference count is incremented on device connect then the RTPM status remains active unless device is disconnected. Change-Id: I68c96ad8fffaf7f3a4795a6949779b0e5cdef64e Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/304195 Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r--drivers/usb/phy/tegra-otg.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/phy/tegra-otg.c b/drivers/usb/phy/tegra-otg.c
index f05d37024f7d..b596d3fdc23c 100644
--- a/drivers/usb/phy/tegra-otg.c
+++ b/drivers/usb/phy/tegra-otg.c
@@ -361,19 +361,14 @@ static void tegra_change_otg_state(struct tegra_otg *tegra,
pr_info("otg state changed: %s --> %s\n", tegra_state_name(from), tegra_state_name(to));
if (from == OTG_STATE_A_SUSPEND) {
- pm_runtime_get_sync(tegra->phy.dev);
if (to == OTG_STATE_B_PERIPHERAL && otg->gadget)
tegra_otg_start_gadget(tegra, 1);
else if (to == OTG_STATE_A_HOST)
tegra_otg_start_host(tegra, 1);
} else if (from == OTG_STATE_A_HOST && to == OTG_STATE_A_SUSPEND) {
tegra_otg_start_host(tegra, 0);
- pm_runtime_mark_last_busy(tegra->phy.dev);
- pm_runtime_put_autosuspend(tegra->phy.dev);
} else if (from == OTG_STATE_B_PERIPHERAL && otg->gadget && to == OTG_STATE_A_SUSPEND) {
tegra_otg_start_gadget(tegra, 0);
- pm_runtime_mark_last_busy(tegra->phy.dev);
- pm_runtime_put_autosuspend(tegra->phy.dev);
}
}
}