]> git.baikalelectronics.ru Git - uboot.git/commit
usb: xhci: Initialize scratchpad buffer array and scratchpad buffers
authorBin Meng <bmeng.cn@gmail.com>
Wed, 19 Jul 2017 13:49:55 +0000 (21:49 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:16 +0000 (23:34 +0200)
commit09994960f5c132f6ff4b4bfc54d3f548886a8b79
tree35ee1adbb9e467c1e15aa82cb86fbb82632df33d
parent5964a116698b1b1edaa771fac3645fa39bfc383b
usb: xhci: Initialize scratchpad buffer array and scratchpad buffers

The scratchpad buffer array is used to define the locations of
statically allocated memory pages that are available for the
private use of the xHC. The xHCI spec explicitly mentions that
system software shall allocate the scratchpad buffers before
placing the xHC in to Run mode (Run/Stop (R/S) = ‘1’), however
U-Boot is missing this part.

This causes xHC on Intel platform does not respond the very first
'enable slot' command that is given to xHC and the 'enable slot'
command completion event TRB is never generated and xHC seems to
hang forever.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.h