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 Wadekar <vwadekar@nvidia.com>
Thu, 12 Jul 2012 04:42:29 +0000 (09:42 +0530)
commit3be31e2cecef04c410570fbb2446eec209da8521
tree955e14df839586bec74d45379231528f5baa4e94
parentca0037a524ce98e48d1ffcdda94241e7e74989eb
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