summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolmes Chou <holmeschou@google.com>2024-02-23 12:55:04 +0800
committerHolmes Chou <holmeschou@google.com>2024-02-24 03:13:37 +0000
commit0d8789e21dcf292849fe5456697982a9ac92a2a0 (patch)
tree740e85f80e219cc36a66046e2464849a951ce928
parent554cfd971add98b2b5746467958b8eca3ff01a88 (diff)
downloadlwis-0d8789e21dcf292849fe5456697982a9ac92a2a0.tar.gz
Change to use k_dev for iommu_dma_enable_best_fit_algo
k_dev is the platform device that represents the physical hardware. k_dev is also set up for DMA operations and connected to the relevant IOMMU. We should use k_dev for iommu_dma_enable_best_fit_algo() call. Bug: 317666175 Test: boot and check to log Change-Id: If64daf0e2a2e61f7924f24eb9b154fe0c5dbb7d4 Signed-off-by: Holmes Chou <holmeschou@google.com>
-rw-r--r--lwis_device_ioreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lwis_device_ioreg.c b/lwis_device_ioreg.c
index a95d4d1..b60dfe8 100644
--- a/lwis_device_ioreg.c
+++ b/lwis_device_ioreg.c
@@ -88,7 +88,7 @@ static int lwis_ioreg_device_setup(struct lwis_ioreg_device *ioreg_dev)
#endif
if (ioreg_dev->iommu_best_fit_algo) {
- ret = iommu_dma_enable_best_fit_algo(ioreg_dev->base_dev.dev);
+ ret = iommu_dma_enable_best_fit_algo(ioreg_dev->base_dev.k_dev);
if (ret) {
dev_warn(ioreg_dev->base_dev.dev, "Cannot enable IOMMU best fit algo\n");
/* Skip best fit algo error */