usb: xhci-mem: Fix scratchpad array issue
After updating the value of dev_context_ptrs[0], we should flush this from cache to memory. Otherwise the xhci controller won't use it. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
54707a9420
commit
8c6cc71b40
@ -369,6 +369,9 @@ static int xhci_scratchpad_alloc(struct xhci_ctrl *ctrl)
|
||||
ctrl->dcbaa->dev_context_ptrs[0] =
|
||||
cpu_to_le64((uintptr_t)scratchpad->sp_array);
|
||||
|
||||
xhci_flush_cache((uintptr_t)&ctrl->dcbaa->dev_context_ptrs[0],
|
||||
sizeof(ctrl->dcbaa->dev_context_ptrs[0]));
|
||||
|
||||
page_size = xhci_readl(&hcor->or_pagesize) & 0xffff;
|
||||
for (i = 0; i < 16; i++) {
|
||||
if ((0x1 & page_size) != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user