arm: tegra3: usb_phy: Fix warning message for lp1 resume
authorPreetham Chandru <pchandru@nvidia.com>
Wed, 20 Jun 2012 10:25:21 +0000 (15:25 +0530)
committerVarun Colbert <vcolbert@nvidia.com>
Mon, 9 Jul 2012 22:32:20 +0000 (15:32 -0700)
commit3f510643870b06d31c24cdd07dd48a7e461ae849
treef84dd4f8215f8b3afcafc560396c4b94e616758e
parent2f2a4ea1d2e8b11d39e18da9081a0a5ac516c387
arm: tegra3: usb_phy: Fix warning message for lp1 resume

When the system resumes from lp1 for usb wake event we are seeing
the below warning message:
usb_phy_bringup_host_controller: timeout waiting for PORT_SUSPEND
The above warning message are seen only for lp1 resume and not for
lp0 resume.
This is happening only for lp1 resume because in
usb_phy_bringup_host_controller(), the port is suspended only
if we are not resuming from remote wakeup, in
case of lp0 remote_wake flag is set to true but not in case of lp1.
This is because in lp1, pmc is not responsible for waking the
system but it's the flow controller and hence UTMIP_WALK_PTR_VAL(inst)
will return 0 due to this remote wakeup flag was getting reset to
false.

Bug 985396
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: I67fcf21d77cbc627315164b6e1c4f27b0b9ae2c3
Reviewed-on: http://git-master/r/110064
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
arch/arm/mach-tegra/tegra3_usb_phy.c