[PATCH] usb: xhci: fix event trb handling missed

Marek Vasut marex at denx.de
Tue Sep 22 13:41:08 CEST 2020


On 9/22/20 6:54 AM, Ran Wang wrote:
> In functiion xhci_bulk_tx(), when buffer cross 64KB boundary, it will
> send request in more than 1 Transfer TRB by chaining them, but then handle
> only 1 event TRB to mark request completed.
> 
> However, on Layerscape platforms (LS1028A, LS1088A, etc), we observe xhci
> controller will generated more than 1 event TRB sometimes, this cause that
> function mishandle event TRB in next round call, then system hang due to
> BUG() checking.
> 
> This patch adds a loop to make sure the event TRB for last Transfer TRB has
> to be handled in time.

Bin, can you please take a look at this one ? Thanks


More information about the U-Boot mailing list