ARM: tegra: hsic: protect disable PMC and set RUN
authorYunfan Zhang <yunfanz@nvidia.com>
Thu, 3 Jan 2013 08:22:47 +0000 (16:22 +0800)
committerRiham Haidar <rhaidar@nvidia.com>
Wed, 16 Jan 2013 22:22:26 +0000 (14:22 -0800)
commit82659ffae1a790fc3a95a55029f854d405ceb8bc
treeb9b645f5b4a60462139fe5b5c7fb2fd210210af8
parent6f5a33adef1ed271c2ec8fca5aa6b76681769100
ARM: tegra: hsic: protect disable PMC and set RUN

Disable 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.

Bug 1164414

Change-Id: Ie51ebbfac8ed51d64e39592b4ee8363d063d82f5
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/189076
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Neil Patel <neilp@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
arch/arm/mach-tegra/tegra11x_usb_phy.c