Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3830427rwj; Tue, 20 Dec 2022 02:28:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf6AQwAYgIFVbr+HDgPACyymz86zWTHyYxoKhi4Ph7mYPbvoktuNG1F5L+HqTglZSbTbND0k X-Received: by 2002:a17:903:41c5:b0:18e:41de:666a with SMTP id u5-20020a17090341c500b0018e41de666amr56147577ple.32.1671532107327; Tue, 20 Dec 2022 02:28:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671532107; cv=none; d=google.com; s=arc-20160816; b=m8bs3s7xXv6LDQHUFJd5MwBChfE0GkqvJPeBGIZxesV9ECW//yFlPqVU4L3c4/mGMQ 1Kp5G3FfnfQJX8EEenIuKfkL9K1K9zQmZkhyEqoBnGCwxlV8ZYDlXFv1TwnygOCV5PUw ApmgJgmPtnNXdpb0CmrvMtE7N8wSWRyQwPsVVXm4IU6LdpbTPjZqH0BTii2mhP1NCVde K0tJlxba68P5ecQbA7d9N6p6T/9C9IxbJUIN4xSCEDqs9UuifBrictYyjeHoL1aAXnyH KEAojKpkMU5XTQP3Yn++ptuMFzJgDaMOIbL/ElYxUyR4Yx1kKm72EPz7uKNT4H4nP+BX wvLw== 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=eSQrlAqgl9ehVU48UzIRmodaal2XCf6blWcE/jOKNIQ=; b=EB+wxFfkTBnE3qx4RzxIXblM2dYslWGPqnflN/JDYUwfG/oQ3AJssRrqsyErg4mpM7 6+UFE0AR2QgW+drjca2YPnc+HM+tfxVSoovSdcIyhhmlJzkNbT6oQ7qAuRq2HYNLCKFS qs3hTmkiY0u/9eGN4fhxfMi6/3Qy0tOtZkp9E/uW6EnbivpYOI6SWP5ncSrUpr8aSzkz b3sug14oExTBzwcIAqsj9CXztXfLMSkOzdY3/X0DS75N+37KJp1M1DI8u3KL8iVm3dnI qXodZcqInlokRwJA3FvFYQFKFXEXTRRS/kCLR0tzQA6/lxCbFSaMnAZwDYyW8oCrkRCA OqSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GhcV6fJy; 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 p10-20020a170902bd0a00b00190cc7878d6si12897716pls.119.2022.12.20.02.28.17; Tue, 20 Dec 2022 02:28:27 -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=@collabora.com header.s=mail header.b=GhcV6fJy; 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 S233525AbiLTJoO (ORCPT + 70 others); Tue, 20 Dec 2022 04:44:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233470AbiLTJnf (ORCPT ); Tue, 20 Dec 2022 04:43:35 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07FE918E24; Tue, 20 Dec 2022 01:42:47 -0800 (PST) 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 0BE0F6602CAA; Tue, 20 Dec 2022 09:42:44 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671529365; bh=BWqzEXUidYwX8sbz46KDwZyzdQJjYGcYq+SPymmJ8Fk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GhcV6fJym8BwiN8M2gDxmkftRbcNNi22Fc4BrS0q4RVTrNOYhZsZPJ2v+E55CmxN5 0jKdeqYJ8/6/kS9qW44Y8r7mXx3VyUMSST2mlWaCc/ujUQizgcV1qB2IObYWfE0/tD WZHnA1oJLvuipSwi8S6axT0CD5jq/oEuNGvAsm9CFsrC0qdFz5ZS514efumcYeZaKp i5tl+WJ0SW86AtHjmVrfx0xdxAe34+sW1aJVnSiMbfd1Yz+FZUr4g2WRbWct0fggJj W30PjCR4M/HJC+5ytewQJf/L8xUdfApY92Z897zkbFTPshktLfgAIunAEowdVcZkhO RD+SP+k80c1Pw== Message-ID: <51e82ede-a6d4-8e7b-88d1-93a1aba1f845@collabora.com> Date: Tue, 20 Dec 2022 10:42:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe() Content-Language: en-US To: Christophe JAILLET , Yong Wu , Joerg Roedel , Will Deacon , Robin Murphy , Matthias Brugger , Honghui Zhang Cc: 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 References: <593e7b7d97c6e064b29716b091a9d4fd122241fb.1671473163.git.christophe.jaillet@wanadoo.fr> From: AngeloGioacchino Del Regno In-Reply-To: <593e7b7d97c6e064b29716b091a9d4fd122241fb.1671473163.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 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/12/22 19:06, Christophe JAILLET ha scritto: > A clk, prepared and enabled in mtk_iommu_v1_hw_init(), is not released in > the error handling path of mtk_iommu_v1_probe(). > > Add the corresponding clk_disable_unprepare(), as already done in the > remove function. > > Fixes: b17336c55d89 ("iommu/mediatek: add support for mtk iommu generation one HW") > Signed-off-by: Christophe JAILLET > Reviewed-by: Matthias Brugger Reviewed-by: AngeloGioacchino Del Regno