[U-Boot] [PATCH 03/20] usb: xhci: Initialize scratchpad buffer array and scratchpad buffers

Simon Glass sjg at chromium.org
Sat Jun 17 03:43:24 UTC 2017


On 16 June 2017 at 07:31, Bin Meng <bmeng.cn at gmail.com> wrote:
> 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 at gmail.com>
> ---
>
>  drivers/usb/host/xhci-mem.c | 87 +++++++++++++++++++++++++++++++++++++++++++++
>  drivers/usb/host/xhci.h     | 10 ++++--
>  2 files changed, 95 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list