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

Commit 0f180669 authored by Pratham Pratap's avatar Pratham Pratap Committed by Mayank Rana
Browse files

usb_bam: Add check to enable SPS_BAM_SMMU_EN with BAM device



This change add checks to see if iommus property is
present in the DT then only it enables SPS_BAM_SMMU_EN.

Change-Id: Ib30db63e5dd7d45877243a6495c98293072d624b
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent fef655d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1213,7 +1213,8 @@ static int usb_bam_init(struct platform_device *pdev)
		props.options |= SPS_BAM_NO_LOCAL_CLK_GATING;

	dev = &ctx->usb_bam_pdev->dev;
	if (dev && dev->parent && !device_property_present(dev->parent,
	if (dev && dev->parent && device_property_present(dev->parent, "iommus")
		&& !device_property_present(dev->parent,
						"qcom,smmu-s1-bypass")) {
		pr_info("%s: setting SPS_BAM_SMMU_EN flag with (%s)\n",
						__func__, dev_name(dev));