diff options
author | Tom Rini <trini@konsulko.com> | 2021-03-10 08:56:52 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-10 08:56:52 -0500 |
commit | 4c8e9361bb3ced3b20e45ee94b3751da1a9ed850 (patch) | |
tree | 51b2faad7b99b20cddf95cf2e6bc7900499c23f9 | |
parent | b764bf21e60901133fd5eec6a003409c581dd519 (diff) | |
parent | 044d7003a7118ad4633e619a81d634cd4c35e670 (diff) | |
download | u-boot-4c8e9361bb3ced3b20e45ee94b3751da1a9ed850.tar.gz |
Merge https://source.denx.de/u-boot/custodians/u-boot-usb
-rw-r--r-- | drivers/usb/mtu3/mtu3_qmu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/mtu3_qmu.c b/drivers/usb/mtu3/mtu3_qmu.c index 801c2bc416..95eaf6d236 100644 --- a/drivers/usb/mtu3/mtu3_qmu.c +++ b/drivers/usb/mtu3/mtu3_qmu.c @@ -198,6 +198,7 @@ static int mtu3_prepare_tx_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq) enq->flag &= ~GPD_FLAGS_HWO; gpd->next_gpd = cpu_to_le32((u32)gpd_virt_to_dma(ring, enq)); + mtu3_flush_cache((uintptr_t)enq, sizeof(*gpd)); if (req->zero) gpd->ext_flag |= GPD_EXT_FLAG_ZLP; @@ -234,6 +235,8 @@ static int mtu3_prepare_rx_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq) enq->flag &= ~GPD_FLAGS_HWO; gpd->next_gpd = cpu_to_le32((u32)gpd_virt_to_dma(ring, enq)); + mtu3_flush_cache((uintptr_t)enq, sizeof(*gpd)); + gpd->flag |= GPD_FLAGS_IOC | GPD_FLAGS_HWO; mreq->gpd = gpd; |