]> git.baikalelectronics.ru Git - kernel.git/commit
USB: xhci: Add tests for TRB address translation.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 9 Nov 2009 21:35:23 +0000 (13:35 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:22 +0000 (11:55 -0800)
commitfa1ee8aa1b34b435a0017da573a4bff9caa617ff
tree019ca7fd4b73772952f570ef2a5dec67c5eabeaa
parent9f384ab8eacfd337c99172f123f14627da0e9824
USB: xhci: Add tests for TRB address translation.

It's not surprising that the transfer request buffer (TRB) physical to
virtual address translation function has bugs in it, since I wrote most of
it at 4am last October.  Add a test suite to check the TRB math.  This
runs at memory initialization time, and causes the driver to fail to load
if the TRB math fails.

Please excuse the excessively long lines in the test vectors; they can't
really be made shorter and still be readable.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h