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

Commit 6db50e29 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu/arm-smmu: Do not write to slave side protected context banks"

parents 4628f3af fdcde415
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -55,11 +55,16 @@ extern void *get_smmu_from_addr(struct iommu_device *iommu, void __iomem *addr);
extern void *arm_smmu_get_by_addr(void __iomem *addr);
/* Donot write to smmu global space with CONFIG_MSM_TZ_SMMU */
#undef writel_relaxed
#undef writeq_relaxed
#define writel_relaxed(v, c)	do {					\
	if (!arm_smmu_skip_write(c))					\
		((void)__raw_writel((u32)cpu_to_le32(v), (c)));	\
	} while (0)

#define writeq_relaxed(v, c) do {                              \
	if (!arm_smmu_skip_write(c))                            \
		((void)__raw_writeq((u64)cpu_to_le64(v), (c))); \
	} while (0)
#else

static inline int msm_tz_smmu_atos_start(struct device *dev, int cb_num)