PCI: epf-mhi: Add eDMA support
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 17 Jul 2023 06:54:56 +0000 (12:24 +0530)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Sat, 26 Aug 2023 16:54:45 +0000 (16:54 +0000)
commit7b99aaaddabba18ba13d74e3c17a8cc094cf6707
treed7f9dc66657a614c4744f4c3eb78a6bf40b71cfd
parentff8d92038cf92c886873c0e0628ba1272e6a087c
PCI: epf-mhi: Add eDMA support

Add support for Embedded DMA (eDMA) available in the DesignWare PCIe IP
to transfer the MHI buffers between the host and the endpoint. The eDMA
use helps achieve greater throughput as the transfers are offloaded from
CPUs.

For differentiating the iATU and eDMA APIs, the pci_epf_mhi_{read/write}
APIs are renamed to pci_epf_mhi_iatu_{read/write} and separate eDMA
specific APIs pci_epf_mhi_edma_{read/write} are introduced.

Platforms that require eDMA support can pass the MHI_EPF_USE_DMA flag
through pci_epf_mhi_ep_info.

[kwilczynski: commit log]
Link: https://lore.kernel.org/linux-pci/20230717065459.14138-5-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/endpoint/functions/pci-epf-mhi.c