Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9463691rwr; Thu, 11 May 2023 15:38:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6v5Vi3M+DaEkT+/b1IF3VA5UqLoTgKG0wnJ57uFmd4ipXg62Wir9Z5NYoSUZXbZS0Hd1rg X-Received: by 2002:a05:6a21:3298:b0:100:c7bd:9f5d with SMTP id yt24-20020a056a21329800b00100c7bd9f5dmr18390380pzb.44.1683844728536; Thu, 11 May 2023 15:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683844728; cv=none; d=google.com; s=arc-20160816; b=o333sXsBTZKEBa16KEx79gFNSEjePmG7tcm6UQhlEhO7My2z295TVvGupWoUHDA2lj y5BKve9bTs+gy5akxwl/4Ztieg8GxxAQw5WBgHCV3x/fH9ipuF7fWXpVaUZ1oeBd4EWc fatbFw1xt4uV0mN7soVjWhLJMHPONOtCqxJayBX/NBq/qtecY6UleBcwo5ySiDTmeT0N Ohvk8x7HvcTG9m1ocOIwVlhnS1wmy3GjUkWjeMX4Fv+YIkHShoqjQkAIuwRQcoADhd/8 87KnX59DQwKhZf8C6GXIvbFJ2qLaNGh/RlmglDYTzaL/WzKzfaJ6eB4KkybdzKcXpoUY 5tdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=+D78NZFIyG9cTjRHg49tXEf4K+BxuWLjB0MhRWS4xmE=; b=lgBMYRMoniP/8wOaAL2PTcv6Ou0pYN/3NI2eO1ghsfFmKB9KeioZCAJsSQXv6aBoVg BPd46/ALfNRpJhSf3swT2PX5wJWJRYWnnVVa2/vk4xfPC3FnqeP55VZhuR0wFIEPwgHv 1Xft92JTMrucpVt8Gbavc6KNLZPfYTm/T/JTny4HaJl7TnOumkzwvN4jd9S39KgGA/3g ytwZhNjBJcZ2/kX3GKxSDWVdVQ5DVxSaocvP+pMAIX0USky+nKSD15lEoYYYmn/1uq7o LCeS200FtLyTTnrmeRtHGtBneJVO8Y9X6zZdr2fxeHb+d+nRM0PJaDzgPqYirgib1snz 8m1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LNceuXEs; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b198-20020a6334cf000000b00514477c4403si7789078pga.310.2023.05.11.15.38.36; Thu, 11 May 2023 15:38:48 -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=@kernel.org header.s=k20201202 header.b=LNceuXEs; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239279AbjEKWhy (ORCPT + 99 others); Thu, 11 May 2023 18:37:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239214AbjEKWhw (ORCPT ); Thu, 11 May 2023 18:37:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9EDF5584; Thu, 11 May 2023 15:37:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5EAF765171; Thu, 11 May 2023 22:37:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BADDCC433D2; Thu, 11 May 2023 22:37:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683844667; bh=+D78NZFIyG9cTjRHg49tXEf4K+BxuWLjB0MhRWS4xmE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=LNceuXEs3YJ/BM9/ZeKGTCnwt2V1n/VFVwM1GOOT+pRx8Jf9wscrAqwTj/yh81exC CVFH98y0ClXaApMBqZbmjlRBCp2+5t/v2WkkmpzCWUyz41EMcg4UwyrGN/uXf4H+Tf 3+1eKv65w6Fc4cSVaR+DMFgduf3ELmaNoULr49Svan9i2eUIsMVZgj3WygJnpEjNfp PCia0Bv0Qpej5ElOPrj0wAcf2OM+Dtu7CMf+3ZPLv7kgVlNWE9qkCIZUZyHkljWprr fsJN6fecyaRUyKevsnMySmDkh3zyfTUxDrJbCGt5ZwvIizy0bk3IFCk7DY/uBKkntu E7rb0olHklYXQ== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230511092654.6d8fab41@haoge-QiTianM428-A376> References: <20230509021214.17105-1-gehao@kylinos.cn> <20230511092654.6d8fab41@haoge-QiTianM428-A376> Subject: Re: [PATCH] mediatek/clk-mt8173-apmixedsys: use devm_of_iomap to avoid resource leak in clk_mt8173_apmixed_probe From: Stephen Boyd Cc: Hao Ge , angelogioacchino.delregno@collabora.com, matthias.bgg@gmail.com, mturquette@baylibre.com, wenst@chromium.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org To: Hao Ge Date: Thu, 11 May 2023 15:37:45 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Quoting Hao Ge (2023-05-10 18:26:54) > On Wed, 10 May 2023 14:18:08 -0700 > Stephen Boyd wrote: >=20 > > Quoting Hao Ge (2023-05-08 19:12:14) > > > Use devm_platform_ioremap_resource to take the place of of_iomap for > > > avoid that we don't called iounmap when return some error or remove > > > device. > > >=20 > > > Fixes: 4c02c9af3cb9 ("clk: mediatek: mt8173: Break down clock > > > drivers and allow module build") Signed-off-by: Hao Ge > > > --- =20 > >=20 > > Is this v3? > Hi Stephen >=20 > yes,Perhaps you are too busy,I have not received a response > in the future, so you are unsure about the status of V2. > So I adjusted the code and title make changes smaller and > sent V3 for it.It is precisely because of these that I did=20 > not continue the original mail thread. >=20 I'm waiting for the usual mediatek clk driver folks to review the patch.