PCI: epf-mhi: Simulate async read/write using iATU
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 27 Nov 2023 10:18:54 +0000 (15:48 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 14 Dec 2023 06:28:53 +0000 (11:58 +0530)
commit5424be958b446601d6176396d9dbaad2178db610
treea939da065abb66d927c5cd99b99447a992d58c93
parent8b786ed8fb089e347af21d13ba5677325fcd4cd8
PCI: epf-mhi: Simulate async read/write using iATU

Even though iATU only supports synchronous read/write, the MHI stack may
call async read/write callbacks without knowing the limitations of the
controller driver. So in order to maintain compatibility, let's simulate
async read/write operation with iATU by invoking the completion callback
after memcpy.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/endpoint/functions/pci-epf-mhi.c