]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xhci: Allocate correct amount of scratchpad buffers
authorMathias Nyman <mathias.nyman@linux.intel.com>
Tue, 24 Feb 2015 16:27:01 +0000 (18:27 +0200)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 16:31:15 +0000 (17:31 +0100)
commitbbadcecc9b8e3e120c1240d64e44683c39e32872
tree29c7f9861c44a571fe43451dda1a165c69ff7b0e
parent660c8a7287d9b825ff2893418cfb7cd48fe0ac06
xhci: Allocate correct amount of scratchpad buffers

commit 6596a926b0b6c80b730a1dd2fa91908e0a539c37 upstream.

Include the high order bit fields for Max scratchpad buffers when
calculating how many scratchpad buffers are needed.

I'm suprised this hasn't caused more issues, we never allocated more than
32 buffers even if xhci needed more. Either we got lucky and xhci never
really used past that area, or then we got enough zeroed dma memory anyway.

Should be backported as far back as possible

Reported-by: Tim Chen <tim.c.chen@linux.intel.com>
Tested-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/host/xhci.h