Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp387861pxb; Thu, 19 Nov 2020 04:03:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1z8JiPq30HuuMUu+P9LT2e024hDpZEdVmM7eDjdaAqg7HL7e/kS7U2g9kQJ0KdwRtTFmE X-Received: by 2002:a17:906:7d16:: with SMTP id u22mr27137166ejo.169.1605787403468; Thu, 19 Nov 2020 04:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605787403; cv=none; d=google.com; s=arc-20160816; b=fYaMs2xmF+i6+G2Y2xqVMhuTreajrXQQOu0alcF6xKhbPZ4wvwb0KtH2nPD/UCopI4 56h1GAzVSbRyq/vMIZvB5tnOmPqHUAqjuy2a3fzZxy62IymI+YEGnHerznWJhhppANAU wRY35W8VBEKiRnZRJn7uQjD8Q5cUqOZDPyOya5fJQ+xygO+JqStVAaK+KZ3E9bq88ewA F41VqNcTSYsHW4yRGgVXo2UBu10NNm9MUo5+Ro6VdSdIiX8utcL9wa5Q/VVDeK9H6JlU tAoPy0OFKTupA6ZeqTpxXNM1pjK7/CZ8VUJO3tmfKDRXfLT18/yCnLwsFspkiKWe1+Kf agnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=xCyz6EWwvDa1Zl0dEU0St3Pr/GxZH6Gp9+WfZEr5e7I=; b=pElOnp0ui60ira4TPjMT1lU8gAKqloy4LUHZU4v22C/y9uwPOYPw2bJVVhbg6zPs0P Sdg3Zn7j+VzozjyFXrmCG9VuBd7TIQxNbd40AwzC16AyX4uFNGbFHWH/mEbW0/4HHjoo ynzhdI/wgnmXRkRNtenS/h1y8RFdzYpi2QllnPC9e4L+YkdYZboWnj/eKSrGKvX8cAU3 y9k70MDabNi67OKV8ozH1L9bk8IuH8EKQfuOzzvpIi7KvgI9SaMJzvItVYVNBO9dAR27 2HRKFvens5oRMJTQb0WeFIpnwYdDzluz2Q/La1bU5KG473oNhhgWezRBWxyjLaFg8bCd LP1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si17528253edw.32.2020.11.19.04.02.59; Thu, 19 Nov 2020 04:03:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbgKSMBa (ORCPT + 99 others); Thu, 19 Nov 2020 07:01:30 -0500 Received: from szxga01-in.huawei.com ([45.249.212.187]:4098 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbgKSMB1 (ORCPT ); Thu, 19 Nov 2020 07:01:27 -0500 Received: from dggeme755-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4CcJDR0K8RzXnbW; Thu, 19 Nov 2020 20:01:11 +0800 (CST) Received: from [10.140.157.68] (10.140.157.68) by dggeme755-chm.china.huawei.com (10.3.19.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Thu, 19 Nov 2020 20:01:23 +0800 Subject: Re: [PATCH v3] clk: hisilicon: refine hi3620_mmc_clk_init() and fix memory leak issues To: Markus Elfring , CC: , , Michael Turquette , Stephen Boyd , Julia Lawall References: <20201112192214.48926-1-gengdongjiu@huawei.com> From: Dongjiu Geng Message-ID: <5b976ad4-43e2-a021-6a93-25642b44cec5@huawei.com> Date: Thu, 19 Nov 2020 20:01:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.140.157.68] X-ClientProxiedBy: dggeme709-chm.china.huawei.com (10.1.199.105) To dggeme755-chm.china.huawei.com (10.3.19.101) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/19 17:07, Markus Elfring wrote: >> Refine hi3620_mmc_clk_init() to use of_clk_add_hw_provider() >> instead of of_clk_add_provider(), … > > … >> +++ b/drivers/clk/hisilicon/clk-hi3620.c > … >> @@ -439,17 +440,22 @@ static struct clk *hisi_register_clk_mmc(struct hisi_mmc_clock *mmc_clk, > … >> + err = clk_hw_register(NULL, hw); >> + >> + if (err) { > > I suggest to omit a blank line here. > > > … >> +++ b/drivers/clk/hisilicon/clk.c >> @@ -65,25 +65,26 @@ struct hisi_clock_data *hisi_clk_init(struct device_node *np, > … >> of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data->clk_data); >> return clk_data; >> -err_data: >> +free_clk_data: > > How do you think about to adjust also such a function call for this function implementation? > > Will further collateral evolution become interesting? > https://elixir.bootlin.com/linux/v5.10-rc4/C/ident/of_clk_add_provider Thanks for the review. How about we adjust such a function call in another series patches? I suggest do it in another series. For this patch, how about we firstly merge it after I fix the above comments(omit a blank line)? > > Regards, > Markus > . >