usb: phy: tegra: add pm_stay_awake/pm_relax during otg work
authorRakesh Babu Bodla <rbodla@nvidia.com>
Tue, 17 Nov 2015 05:52:18 +0000 (10:52 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 19 Nov 2015 16:18:10 +0000 (08:18 -0800)
commitfcc0c9a5b78adcd848ac4604213d51619b0c6b8c
treeb56d7af27351a24bfb791ec006b528f4f0cce768
parentab1625ba104b8ec0a081a3778bdaefd2b299abd3
usb: phy: tegra: add pm_stay_awake/pm_relax during otg work

Ensure suspend events don't trigger during otg
workqueue function is running, using
pm_stay_awake/pm_relax.

Bug 200148068
Bug 200141477

Change-Id: Idf9ae907eb563f3849fa420ce3b73b1635083fe4
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/833693
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Petlozu Pravareshwar <petlozup@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
drivers/usb/phy/tegra-otg.c