[PATCH 0/3] bus: mhi: ep: Implement flush_async() callback to flush async read/write

From: Manivannan Sadhasivam via B4 Relay

Date: Mon Jun 29 2026 - 04:45:51 EST


Hi,

This series introduces a new mhi_cntrl->flush_async() callback to flush the
async read/write operations performed by the MHI controller using offload
mechanisms such as DMA.

The MHI EPF driver implements this callback by flushing the DMA wq. With this
series, the MHI EP stack can guarnatee that the channel specific xfer_cb() won't
be run after calling mhi_ep_remove().

Merge Strategy
==============

The dmaengine driver change can go separately as there is no build dependency.
But both MHI and PCI EP changes should go together. I'm planning to take both
MHI and PCI EP patches through MHI tree.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
---
Manivannan Sadhasivam (3):
dmaengine: dw-edma: Implement device_synchronize() callback
bus: mhi: ep: Add mhi_cntrl->flush_async() callback to flush the async read/write
PCI: epf-mhi: Implement mhi_cntrl->flush_async() to flush DMA read/write

drivers/bus/mhi/ep/main.c | 7 +++++++
drivers/dma/dw-edma/dw-edma-core.c | 16 ++++++++++++++++
drivers/pci/endpoint/functions/pci-epf-mhi.c | 10 ++++++++++
include/linux/mhi_ep.h | 2 ++
4 files changed, 35 insertions(+)
---
base-commit: 4549871118cf616eecdd2d939f78e3b9e1dddc48
change-id: 20260627-mhi-ep-flush-b50502718a9d

Best regards,
--
மணிவண்ணன் சதாசிவம்