Skip to contentSkip to conversation

iommu/exynos: Suppress unbinding to prevent system failure

PATCH New Marek Szyprowski 2 participants 2 messages May 20, 2016

Subsystems (4)
lore
Share & tools
lore

Marek Szyprowski

author maintainer
#0 lore raw

PATCH 1/1 iommu/exynos: Suppress unbinding to prevent system failure

Removal of IOMMU driver cannot be done reliably, so Exynos IOMMU driver doesn't support this operation. It is essential for system operation, so it makes sense to prevent unbinding by disabling bind/unbind sysfs feature for SYSMMU controller driver to avoid kernel ops or trashing memory caused by such operation.

CC stable at vger.kernel.org # v4.2+
---
 drivers/iommu/exynos-iommu.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iommu/exynos-iommu.c +1 -0
index 558a40d3a6a0..d365c40a7b84 100644
@@ -681,6 +681,7 @@ static struct platform_driver exynos_sysmmu_driver __refdata = {
 		.name		= "exynos-sysmmu",
 		.of_match_table	= sysmmu_of_match,
 		.pm		= &sysmmu_pm_ops,
+		.suppress_bind_attrs = true,
 	}
 };
 
Signature · 1 line
1.9.2
#1 lore raw

PATCH 1/1 iommu/exynos: Suppress unbinding to prevent system failure

Quoted 11 lines · Marek Szyprowski

Removal of IOMMU driver cannot be done reliably, so Exynos IOMMU driver doesn't support this operation. It is essential for system operation, so it makes sense to prevent unbinding by disabling bind/unbind sysfs feature for SYSMMU controller driver to avoid kernel ops or trashing memory caused by such operation.

CC stable at vger.kernel.org # v4.2+
---
 drivers/iommu/exynos-iommu.c | 1 +
 1 file changed, 1 insertion(+)

Best regards,
Krzysztof