bus: mhi: ep: Pass mhi_ep_buf_info struct to read/write APIs
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 17 Aug 2023 17:54:52 +0000 (23:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:53 +0000 (15:35 -0800)
commitad671dfce2d9da2c2c67790f85b6ea9566bb7763
treed7f0e6b1a92a68d18bf95c082b164285ba61987b
parentbd4f6f1f8948bda35cdb119689b2021cf610591b
bus: mhi: ep: Pass mhi_ep_buf_info struct to read/write APIs

[ Upstream commit b08ded2ef2e98768d5ee5f71da8fe768b1f7774b ]

In the preparation of DMA async support, let's pass the parameters to
read_from_host() and write_to_host() APIs using mhi_ep_buf_info structure.

No functional change.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Stable-dep-of: 327ec5f70609 ("PCI: epf-mhi: Fix the DMA data direction of dma_unmap_single()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bus/mhi/ep/main.c
drivers/bus/mhi/ep/ring.c
drivers/pci/endpoint/functions/pci-epf-mhi.c
include/linux/mhi_ep.h