|
@@ -543,6 +543,13 @@ static int msm_iommu_unmap(struct iommu_domain *domain, unsigned long va,
|
|
}
|
|
}
|
|
|
|
|
|
ret = __flush_iotlb(domain);
|
|
ret = __flush_iotlb(domain);
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * the IOMMU API requires us to return the order of the unmapped
|
|
|
|
+ * page (on success).
|
|
|
|
+ */
|
|
|
|
+ if (!ret)
|
|
|
|
+ ret = order;
|
|
fail:
|
|
fail:
|
|
spin_unlock_irqrestore(&msm_iommu_lock, flags);
|
|
spin_unlock_irqrestore(&msm_iommu_lock, flags);
|
|
return ret;
|
|
return ret;
|