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

Commit 011adb98 authored by Susheel Khiani's avatar Susheel Khiani
Browse files

iommu: Provide dummy entries for DOMAIN_ATTR_ATOMIC



Map / unmap calls on legacy IOMMU driver are by
default atomic. But clients or test drivers might
still call set_attribute for targets not using
legacy IOMMU driver. So for sake of completeness
provide a dummy entry so that clients don't fail
on call set_attribute.

Change-Id: Ifc2567311ea4fe3cba109706d247ac653f06bbae
Signed-off-by: default avatarSusheel Khiani <skhiani@codeaurora.org>
parent 566d1d5d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1832,6 +1832,12 @@ static int msm_iommu_domain_set_attr(struct iommu_domain *domain,
		 * is not dynamic in this driver.
		 */
		break;
	case DOMAIN_ATTR_ATOMIC:
		/*
		 * Map / unmap in legacy driver are by default atomic. So
		 * we don't need to do anything here.
		 */
		break;
	default:
		return -EINVAL;
	}
+6 −0
Original line number Diff line number Diff line
@@ -1025,6 +1025,12 @@ static int msm_iommu_domain_set_attr(struct iommu_domain *domain,
		 * any domain.
		 */
		break;
	case DOMAIN_ATTR_ATOMIC:
		/*
		 * Map / unmap in legacy driver are by default atomic. So
		 * we don't need to do anything here.
		 */
		break;
	default:
		return -EINVAL;
	}