Browse Source

icnss2: return ENOSYS from smmu fault handler callback

Return -ENOSYS from smmu fault handler callback as iommu
driver requires -ENOSYS return value to print debug info.

Change-Id: Id395269542d40137323d413f20da67dc715efa2d
CRs-Fixed: 3513019
Sandeep Singh 1 year ago
parent
commit
8ddac0b648
1 changed files with 2 additions and 2 deletions
  1. 2 2
      icnss2/main.c

+ 2 - 2
icnss2/main.c

@@ -4398,8 +4398,8 @@ static int icnss_smmu_fault_handler(struct iommu_domain *domain,
 
 	icnss_trigger_recovery(&priv->pdev->dev);
 
-	/* IOMMU driver requires non-zero return value to print debug info. */
-	return -EINVAL;
+	/* IOMMU driver requires -ENOSYS return value to print debug info. */
+	return -ENOSYS;
 }
 
 static int icnss_smmu_dt_parse(struct icnss_priv *priv)