summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorKrishna Yarlagadda <kyarlagadda@nvidia.com>2013-05-09 16:47:48 +0530
committerRiham Haidar <rhaidar@nvidia.com>2013-05-10 12:49:22 -0700
commit8d930002b045f84dbaff46114973253bd6327ff1 (patch)
treea59f4c651526eed4d73b70e78eca10836afc2444 /drivers/usb
parentf4fe2faa9567f5ce4167d22e37fe9691c73e304e (diff)
usb: otg: tegra: no state change until otg resumes
USB state change might involve removing ehci device which should not be handled before drivers are resumed. No state change while otg driver is still in suspend Change-Id: Ib92c75ee3397a79b6e7770935f2004a9ad94fec1 Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/227032 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> Tested-by: Hayden Du <haydend@nvidia.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/otg/tegra-otg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/otg/tegra-otg.c b/drivers/usb/otg/tegra-otg.c
index 6c89cafa9fa0..23fb48f213fb 100644
--- a/drivers/usb/otg/tegra-otg.c
+++ b/drivers/usb/otg/tegra-otg.c
@@ -113,7 +113,8 @@ static int otg_notifications(struct notifier_block *nb,
DBG("%s(%d) tegra->int_status = 0x%lx\n", __func__,
__LINE__, tegra->int_status);
- schedule_work(&tegra->work);
+ if (!tegra->suspended)
+ schedule_work(&tegra->work);
DBG("%s(%d) End\n", __func__, __LINE__);
return NOTIFY_DONE;