Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp889938rwb; Fri, 13 Jan 2023 05:33:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXtRM+fe13dcaI7hudBt2b9dtuZzT2IsCWPcD1/Tvu8pOReK+uLXCiOLCKjUaE/HwmKaEtzP X-Received: by 2002:a50:ef0b:0:b0:498:d121:6e02 with SMTP id m11-20020a50ef0b000000b00498d1216e02mr19391965eds.34.1673616788687; Fri, 13 Jan 2023 05:33:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673616788; cv=none; d=google.com; s=arc-20160816; b=RnHhFnUAO5YFScXBcur32N7pCLyP0SpfnaeV95sb0gsGt061HNmMbBruHpJDugncfN oeW5kIA9HyWjgZ6O746ViFIqWy6J9NZrMz/w6fBPd1s0gisrCwvOOEeA9UR5zB/iUuZd 507pPCrYeSED/XqUWRj87yjD6fLjGG557cQ4rqU2oxAMtqiug65E4XvjHshGq2Vn2D9b 7Ag/OKofctKsanswR5QlP66Gl7AbSz74dne2GWHQFXLrWw685CXQwlTeeC94DyHIGAoy tP1uX/HzbyZsweHgp2rCEyj1T/w8JSajjIVykgBIJk8Rrutjbfv7EIs2Q+15Q7WU3Kln rESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9xVHcYsXrWDi0vGmkE9TGrGk9XSM3J6A32ZgmxGqsVk=; b=pvePLPuKvVNmNu2G3K4cdtvcFJQLTNn0GClupnVg2ZwDexkTwK9k+SjVPyfZQPvByE tIc4vQ8+4eIfPQjay9AZuNBcsK2Nmh1HgLQA7O8vN7oc/bwbOB0f54KOGwN+TqLtZ84E KhxIvXEOLzrfUVC+voIfAicqne8Yw7bkK+GFfl02uM+6DQ9IPRmUh+Nk8ql+BbV0o9jg eK4Z7PrrACnlFGjf6PNG2DH5jGfd/aMfQVCuYkgTcBuKSRN6lxug6tV5rc8MZl82yL1o NoPxeEuk2MNTT9isS8EFp8WWaDAC836gAHU8KccuKpb1e8DdQ8S6D9OMz46/zs6s/mzU 20pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=rPPebLs2; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a056402441000b004855f088a3csi24601392eda.608.2023.01.13.05.32.55; Fri, 13 Jan 2023 05:33:08 -0800 (PST) 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=@8bytes.org header.s=default header.b=rPPebLs2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241289AbjAMM5Y (ORCPT + 53 others); Fri, 13 Jan 2023 07:57:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241497AbjAMM4g (ORCPT ); Fri, 13 Jan 2023 07:56:36 -0500 Received: from mail.8bytes.org (mail.8bytes.org [IPv6:2a01:238:42d9:3f00:e505:6202:4f0c:f051]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B51BBCE3A; Fri, 13 Jan 2023 04:44:44 -0800 (PST) Received: from 8bytes.org (p200300c277327f0086ad4f9d2505dd0d.dip0.t-ipconnect.de [IPv6:2003:c2:7732:7f00:86ad:4f9d:2505:dd0d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id ED600262340; Fri, 13 Jan 2023 13:44:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1673613884; bh=MscDIF3GsS7zhLNLVm/WiZfXdK2GItkr1gCY7Yuq/gI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rPPebLs22xmYECIA08EQJNTrmdxY/5R/5bZCTMtoBcDNUjONEC2f+5UAg8dAZe75+ tqE8v/3rLs7mCO3KLHwvNGsPVWQBtuVvqPwY3CkNFofuCjIbjORA2kfOpk1F+SJqHS vu74z7MbR0+vA3ZD6tOFAUFqsWrOHy3641EGSVcGnfOUn2ROmYiifTNyvZaaOZVeup CHaSNd8Wxg0IAfMYSzJLIyNFFsgFkFpLl3vTxK06O5163O32q9h66/GXsfrk9ouli+ wblcy2rD81UzrGfIbXJ5pJIvmpHtRjWubRPBGt7+fMH6SD1A1suPCFFH1DEGwtb3oG 3OjlH5HQuawEA== Date: Fri, 13 Jan 2023 13:44:42 +0100 From: Joerg Roedel To: Christophe JAILLET Cc: Yong Wu , Will Deacon , Robin Murphy , Matthias Brugger , Honghui Zhang , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Joerg Roedel , iommu@lists.linux.dev, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe() Message-ID: References: <593e7b7d97c6e064b29716b091a9d4fd122241fb.1671473163.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <593e7b7d97c6e064b29716b091a9d4fd122241fb.1671473163.git.christophe.jaillet@wanadoo.fr> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Mon, Dec 19, 2022 at 07:06:22PM +0100, Christophe JAILLET wrote: > Fixes: b17336c55d89 ("iommu/mediatek: add support for mtk iommu generation one HW") > Signed-off-by: Christophe JAILLET > --- > Another option would be to use devm_clk_get_enabled(). This would save a > few LoC in mtk_iommu_v1_hw_init() and in the remove function. > However, it would change the order of function calls in the remove function > so I leave it as-is. > Let me know if it is fine and if you prefer this alternative. > --- > drivers/iommu/mtk_iommu_v1.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied, thanks.