]> git.baikalelectronics.ru Git - kernel.git/commit
USB: xhci: Fix finding extended capabilities registers
authorEdward Shao <laface.tw@gmail.com>
Wed, 10 Feb 2010 19:37:30 +0000 (03:37 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:55:02 +0000 (14:55 -0800)
commitc740d2790f0e7ec24ececbb033782ec7dce3dfae
tree733684b9d0acbcd43f6f3e95f3bbc2ca4c48e960
parentf613ebf6bc0f5056ba44fd725c79b87766d93f94
USB: xhci: Fix finding extended capabilities registers

According "5.3.6 Capability Parameters (HCCPARAMS)" of xHCI rev0.96 spec,
value of xECP register indicates a relative offset, in 32-bit words,
from Base to the beginning of the first extended capability.
The wrong calculation will cause BIOS handoff fail (not handoff from BIOS)
in some platform with BIOS USB legacy sup support.

Signed-off-by: Edward Shao <laface.tw@gmail.com>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-ext-caps.h