Message ID | 20200525113959.11886-2-s.nawrocki@samsung.com |
---|---|
State | Accepted |
Commit | 61293f519ef75b3ead00a083f65811df31692b9d |
Headers | show |
Series | [v4,1/9] usb: xhci: Add missing cache flush in the scratchpad array initialization | expand |
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 93450ee..729bdc3 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -393,6 +393,9 @@ static int xhci_scratchpad_alloc(struct xhci_ctrl *ctrl) scratchpad->sp_array[i] = cpu_to_le64(ptr); } + xhci_flush_cache((uintptr_t)scratchpad->sp_array, + sizeof(u64) * num_sp); + return 0; fail_sp3: