Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp318935rwb; Thu, 22 Sep 2022 18:57:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FRn9tRPjg6ACRe8Tn2PQ86JsaqdHBnOi1I4W/ys7qpMWZjhACkbFFMO8FM5Yx4U+vBykB X-Received: by 2002:a17:902:8307:b0:172:e611:491f with SMTP id bd7-20020a170902830700b00172e611491fmr6080830plb.111.1663898223961; Thu, 22 Sep 2022 18:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663898223; cv=none; d=google.com; s=arc-20160816; b=kU/oT4oIk8LKNP3UsS3EuMpmznGltc4RtDEAtN08LiIn/+UFfU4b747yXnkA6BA4+p +zXMyhkcbB70W49Bb3DdGLM9dkeTjU7EiCzHsGVveKAJqukrqR3gtzkHOMZNU+i6Q9bi mkDr6gX2jXVSw6SHNQmBV5+eksMMRLyBiMQCU4RJytu5EmdeGrred3GTHMgJxYVzj2id 1TBNd7EoQUEh6op+BR0ZBC7Q+/N8R0rngJxNCzIVUx9ZFpIY3ClOmcymoKRq/OO30GgC 3PVT7qE7UK64EPBgNLRydRhi99Z33v9hoVi5G8HnyH8PrtFE+6DU8jSes1nlX4LiVjSr /ZIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=10Du0IWQFsHNUbZWCznPpkKBXDFn+p52pQMLrjF0b1M=; b=VwuFx8oUgMVgf+obhHSK+6Zyhu/6Jl0Yx4yJG7tqF5mV8DTiiNFNJErxUqbGDGsUqq fBJcKdKbPkrQfBG7HhjzEyBDp1hKh44p4HwYoKcDI+a2imF9Yu4rNI9u0X+K0km0b30I Gm7VErwqba76m59Zfcmo80GwS9lP5MoFOJdmPZxUEXUXx0oV7ZH+Po0jv8QuoLoVWryt QS4j7pF7Gyx4mui1rR3oYzhdZuVF1NYN+xyuOiwqbjpsrWEsYzO0mc+J0wARBZWlDowH 4Mvp21RhaiMl+PXbD4QPhg5LzLgUCGd301yqIMG596BYBeIAYJDIGxoxKYUmC460aglS TMIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IfAenQWb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j62-20020a638b41000000b0043961fad9f5si7587632pge.461.2022.09.22.18.56.41; Thu, 22 Sep 2022 18:57:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IfAenQWb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232142AbiIWBKW (ORCPT + 99 others); Thu, 22 Sep 2022 21:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231872AbiIWBKC (ORCPT ); Thu, 22 Sep 2022 21:10:02 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F15673ED42 for ; Thu, 22 Sep 2022 18:09:45 -0700 (PDT) X-UUID: e414e3a049aa4c8d88b8fee4b6b4a7bc-20220923 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=10Du0IWQFsHNUbZWCznPpkKBXDFn+p52pQMLrjF0b1M=; b=IfAenQWbSOOpRCCRlf9IZvS5ZJbIkgDx9Q/ZHmKxeXjG5YzI9jNxHzpHtHCYTsjw9JOyGpIGASPAQXbpPmnqVbZFjRLXCQ3kBEERp48NmEY8Kel/lNQe8/lN4zY350uQhev5tiOijm2lKQ41YarxCkmzgEF9IYmVuj8gzBU6VZw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:6e958d89-7ca8-4a67-9e3c-a8052dccd2b2,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:39a5ff1,CLOUDID:faaac8a2-dc04-435c-b19b-71e131a5fc35,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: e414e3a049aa4c8d88b8fee4b6b4a7bc-20220923 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 59141201; Fri, 23 Sep 2022 09:09:40 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Fri, 23 Sep 2022 09:09:39 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 23 Sep 2022 09:09:38 +0800 Message-ID: Subject: Re: [PATCH v5 6/6] iommu: Propagate return value in ->attach_dev callback functions From: Yong Wu To: Nicolin Chen , , , , , CC: , , , , , , Date: Fri, 23 Sep 2022 09:09:38 +0800 In-Reply-To: <8040df414a1d4bc007a25553b8341acf37ead670.1663836372.git.nicolinc@nvidia.com> References: <8040df414a1d4bc007a25553b8341acf37ead670.1663836372.git.nicolinc@nvidia.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2022-09-22 at 01:54 -0700, Nicolin Chen wrote: > The mtk_iommu and virtio drivers have places in the ->attach_dev > callback > functions that return hardcode errnos instead of the returned values, > but > callers of these ->attach_dv callback functions may care. Propagate > them > directly without the extra conversions. > > Reviewed-by: Kevin Tian > Reviewed-by: Jean-Philippe Brucker > Signed-off-by: Nicolin Chen > --- > drivers/iommu/mtk_iommu.c | 2 +- > drivers/iommu/virtio-iommu.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Yong Wu #For mtk_iommu.c Thanks.