tegra usb: Switching of USB busy hints, when no active USB tranfers tegra-9.12.8
authorsgadagottu <sgadagottu@nvidia.com>
Fri, 19 Mar 2010 20:27:00 +0000 (01:57 +0530)
committerGary King <gking@nvidia.com>
Sun, 21 Mar 2010 17:33:01 +0000 (09:33 -0800)
commit873a30edbac4017af82525c1e2385d2b743f436e
tree4d8f39403a5277a2ab054d44034cf10415640017
parent3fd0b4e9712b848d23f2f341ab4e5b472f50932f
tegra usb: Switching of USB busy hints, when no active USB tranfers
           are happening though a device connection on host port.

Currently for harmony, an intergrated SMSC hub present on USB3. Because
of this device connection is present on USB3 and USB power busy hints
are always on. To avoid this, for host by default busy hints are off and
USB busy hints will be on for :
1.Bulk and isochronus transfers
2.Interrupts transfers with buffer length >= 256.
Busy hint will be on for pre-defined amount of time
and after that busy hints will be off automatically.

With this in idle state power is reduced.

Tested on : Harmony
Enumeartion is happening fine.
LAN and USB HID devices are working fine

Change-Id: Ifd653bebfb52c7702f7d24bf11ccf93e62ea0f66
Reviewed-on: http://git-master/r/915
Reviewed-by: Gary King <gking@nvidia.com>
Tested-by: Gary King <gking@nvidia.com>
arch/arm/mach-tegra/nvddk/nvddk_usbphy.c
drivers/usb/host/ehci-tegra.c
include/linux/tegra_devices.h