]> git.kernelconcepts.de Git - karo-tx-linux.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>
Mon, 15 Mar 2010 16:06:53 +0000 (09:06 -0700)
commit66d23bc2605a8ada7746c75adc798e6e6ac4fe74
tree90bd5522bfe600a6a2078d5627374dcd10050d28
parent33fec1cfc33abcf1d10579dbf01139bd4556b42e
USB: xhci: Fix finding extended capabilities registers

commit 05197921ff3dad52d99fd1647974c57d9c28d40e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-ext-caps.h