ARM: tegra: usb_phy: protect disable PMC and remove delay
authorSuresh Mangipudi <smangipudi@nvidia.com>
Mon, 21 Jan 2013 09:11:24 +0000 (14:11 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Tue, 22 Jan 2013 22:07:04 +0000 (14:07 -0800)
commit3c186ebc4ecc03a0cf085e201cf2ab84e3efcb09
treec6df855c45d3c07accb9d7f4c9978ad5d41b80a5
parenta9724a0344c9bd777aabb478dfdff66a7db30841
ARM: tegra: usb_phy: protect disable PMC and remove delay

Disable the local irq to prevent context switch between disable PMC and
set RUN bit ops in case of remote wakeup.

Operations of disable PMC control and set RUN bit might be interrupted
and scheduled out which would take a long time until RUN bit set, so
device won't see the SOFs within 3ms and go back into suspend again.
Resulting in the ehci controller issuing a reset-resume, to recover.

Bug 1213088

Change-Id: Ia1232ef34ce7df937bcedbb2f294fffb4c8f9a73
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/192794
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
arch/arm/mach-tegra/tegra11x_usb_phy.c