]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Add Intel U1/U2 timeout policy.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 16 May 2012 20:36:24 +0000 (13:36 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 18 May 2012 22:42:04 +0000 (15:42 -0700)
commit46e49d57b3683ff08c7a22ca2408792b083007f3
tree2442117f7358e50f49cfecd030a6017d392f474c
parentb6cf124898971416bf6b3b0251dc70457c79e63f
xhci: Add Intel U1/U2 timeout policy.

All Intel xHCI host controllers support USB 3.0 Link Power Management.

The Panther Point xHCI host controller needs the xHCI driver to
calculate the U1 and U2 timeout values, because it will blindly accept a
MEL that would cause scheduling issues.

The Lynx Point xHCI host controller will reject MEL values that are too
high, but internally it implements the same algorithm that is needed for
Panther Point xHCI.

Simplify the code paths by just having the xHCI driver calculate what
the U1/U2 timeouts should be.  Comments on the policy are in the code.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h