Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3050e3c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qcom-geni-se: Add IOMMU check in geni common driver"

parents 445832e3 f3c8445e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1342,6 +1342,10 @@ static int geni_se_iommu_map_and_attach(struct geni_se_device *geni_se_dev)
	int bypass = 1;
	struct device *cb_dev = geni_se_dev->cb_dev;

	/*Don't proceed if IOMMU node is disabled*/
	if (!iommu_present(&platform_bus_type))
		return 0;

	mutex_lock(&geni_se_dev->iommu_lock);
	if (likely(geni_se_dev->iommu_map)) {
		mutex_unlock(&geni_se_dev->iommu_lock);