usb: host: tegra: rewrite usb suspend/resume routine.
authorJay Cheng <jacheng@nvidia.com>
Mon, 22 Nov 2010 16:03:52 +0000 (11:03 -0500)
committerBenoit Goby <benoit@android.com>
Mon, 22 Nov 2010 21:05:49 +0000 (13:05 -0800)
commitea1a88753b2c59ec2924418234d34ec1a23f80e0
tree3b8595d42f3755e7cec2784b58cef7a4041f22ca
parentc5436143600aadf50375658894c258fb74435b37
usb: host: tegra: rewrite usb suspend/resume routine.

Tegra host controller will time the resume operation to clear the bit
when the port control state switches to HS or FS Idle. This behavior
is different from EHCI where the host controller driver is required
to set this bit to a zero after the resume duration is timed in the
driver.

Poll PORT_SUSPEND bit till the suspend is completed. Write PORT_RESUME to 0
to clear PORT_SUSPEND bit.

Disable disconnect detection during resume.

Change-Id: I30a45dc7e7a87773a93c128877d0f0827e5d44b7
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
drivers/usb/host/ehci-tegra.c