Skip to content
Snippets Groups Projects
Commit 2c4f2176 authored by Chunfeng Yun's avatar Chunfeng Yun Committed by Marek Vasut
Browse files

usb: mtu3: flush cache for the first GPD when allocate GPD ring


When allocate the GPD ring, and tell its address to the controller, then
the driver starts or resumes the QMU, the controller will try to access
the first GPD, so need flush the first one to avoid wrong GPD status.

Reported-by: default avatarXin Lin <Xin.Lin@mediatek.com>
Signed-off-by: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
parent b8bfe052
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,7 @@ int mtu3_gpd_ring_alloc(struct mtu3_ep *mep)
memset(gpd, 0, QMU_GPD_RING_SIZE);
ring->dma = (dma_addr_t)gpd;
gpd_ring_init(ring, gpd);
mtu3_flush_cache((uintptr_t)gpd, sizeof(*gpd));
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment