From 8ddac0b6482b3e69483ece32f9b981cfa2d2d5aa Mon Sep 17 00:00:00 2001 From: Sandeep Singh Date: Mon, 29 May 2023 16:33:46 +0530 Subject: [PATCH] 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 --- icnss2/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icnss2/main.c b/icnss2/main.c index db137335fa..4197b7cf05 100644 --- a/icnss2/main.c +++ b/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)