Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2634491rwb; Mon, 19 Sep 2022 07:51:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5U+w2f2/YMm/pAW1FczRKy40AHc82PJnU9jHHAxzALLnFRjQnJpyXY91UNQOv72fHeGxNV X-Received: by 2002:a63:fc18:0:b0:439:3c52:4517 with SMTP id j24-20020a63fc18000000b004393c524517mr16124843pgi.433.1663599084972; Mon, 19 Sep 2022 07:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663599084; cv=none; d=google.com; s=arc-20160816; b=vuAxjlyrsk3YEPFPMMyBWz8yFB0e9r/sNeJssbpxtpEvb+tyoug97tVl7hw2YdkbKx AAoUWR+ksabK2EF5HwbQsHd4QzbHiLXRy0vyhKzN9x2pgrKUZP06lCqfS6QIogLXAnkJ Q0Ism7CtcnNiaFw/zck6/v02qvLrxVns6y880mKmhMFFem2pgC2tiffHkiKUK3r12ES2 ++1Bf7T2rkWOtzAREljcLfACuWnMKiYJhESwQ5/TiKkkHh9QmVPApPHmDoMyt9pNU8EL dAtRWR2WV802A156iR1xmlOU9ilW/Mx+3bbvX0+ERS+n3GwGA7cX9Nwadcgy9YZvLDES N4Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/h/AKAD9FImYPjcuXye/fqn8rNUr4EBDj6YTrZpGd8M=; b=oFbOVO2ASQkMdFZuvoWRDNm25Ousltrpl118y6jgcIYrvi7wFfv9xTkDXDe7Kv4hO0 2E1x3yoxfca1YPv/pHscBoLlVEtby7ThPrDSStPSTfN+WVV2aO23phkcx79+augnPQxG 9Tl0F8PrhpawTdO4tnG2F6GOVuFHKuT4ZAsqvxhOeTlu9W1BOR0ewv8ZkGBxxc46ZHEO snDaTcIKys1TNLX385lotGujwGbk4kkWmBLoamawSOUZRd1/pXbEE449DODQ2r3Fu42V M5L8enEtmimimIuEjKrUoqCQkvlfw7gy/gOZe99UOI3PkNLaBd4aJepRZpOHeeANQ+Hj K3Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=fkN0UoM4; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oj18-20020a17090b4d9200b001fdd049f314si12454746pjb.34.2022.09.19.07.51.12; Mon, 19 Sep 2022 07:51:24 -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=@collabora.com header.s=mail header.b=fkN0UoM4; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbiISOUk (ORCPT + 99 others); Mon, 19 Sep 2022 10:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbiISOUi (ORCPT ); Mon, 19 Sep 2022 10:20:38 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F6F213FB0 for ; Mon, 19 Sep 2022 07:20:37 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 6965766019EE; Mon, 19 Sep 2022 15:20:35 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663597236; bh=zJDw7len3NGEkOF3/FseuWbZ3frYleqkiO3IoRDifyI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=fkN0UoM4m/diw/YQMalwhdGPC0zU5COVJTISdis76ZDSdEFrMnqY937cKHUKckZ8T 7EH5laJCWNf7FA76lpKUnrIoQMTO/La94Vht3RCih9lLqJo2yJYQ+qYv9xEqtx5mD8 hHnl930qhtMPiYnjOVWvjcUbjUJKDdD5baUP0dCheeggCa+00XmsPIS+YmkOWigHl/ wkHpbe4m2MA/W+laINZB0ULUPH7UuFESTTFBIbA83ITgE48wBW8iG1lzsqaKOQOWQe bkcWU3gGwipbFZ1MMuV1EZ+UBvell74zBsQInFNayr8bsVzGTb4o5fdDSB7o8CTiSL TOMbaAZhS32bw== Message-ID: Date: Mon, 19 Sep 2022 16:20:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v5 2/6] iommu/mediatek: Use component_match_add Content-Language: en-US To: Yong Wu , Joerg Roedel , Matthias Brugger , Will Deacon Cc: Robin Murphy , iommu@lists.linux.dev, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mingyuan.ma@mediatek.com, yf.wang@mediatek.com, libo.kang@mediatek.com, chengci.xu@mediatek.com, youlin.pei@mediatek.com, anan.sun@mediatek.com, xueqi.zhang@mediatek.com, Guenter Roeck , Dan Carpenter References: <20220919092405.8256-1-yong.wu@mediatek.com> <20220919092405.8256-3-yong.wu@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220919092405.8256-3-yong.wu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 Il 19/09/22 11:24, Yong Wu ha scritto: > In order to simplify the error patch(avoid call of_node_put), Use > component_match_add instead component_match_add_release since we are only > interested in the "device" here. Then we could always call of_node_put in > normal path. > > Strictly this is not a fixes patch, but it is a prepare for adding the > error path, thus I add a Fixes tag too. > > Fixes: d2e9a1102cfc ("iommu/mediatek: Contain MM IOMMU flow with the MM TYPE") > Suggested-by: Robin Murphy > Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno