Bypass SMMU stage-1 till it is fully supported by WLAN driver and
device.
Change-Id: I186345c20f9b71171bba6acc8c5eaa689e39b51c
CRs-fixed:
2071634
Signed-off-by: Yue Ma <yuem@codeaurora.org>
struct device *dev;
struct dma_iommu_mapping *mapping;
int atomic_ctx = 1;
+ int s1_bypass = 1;
dev = &pci_priv->pci_dev->dev;
goto release_mapping;
}
+ ret = iommu_domain_set_attr(mapping->domain,
+ DOMAIN_ATTR_S1_BYPASS,
+ &s1_bypass);
+ if (ret) {
+ pr_err("Failed to set SMMU s1_bypass attribute, err = %d\n",
+ ret);
+ goto release_mapping;
+ }
+
ret = arm_iommu_attach_device(dev, mapping);
if (ret) {
pr_err("Failed to attach SMMU device, err = %d\n", ret);