[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <974a1539-531a-6aa3-ba07-5d2c9003d08f@huawei.com>
Date: Mon, 24 Jun 2024 10:09:32 +0800
From: Hanjun Guo <guohanjun@...wei.com>
To: Youwan Wang <youwan@...china.com>
CC: <lenb@...nel.org>, <linux-acpi@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-kernel@...r.kernel.org>,
<lpieralisi@...nel.org>, <rafael@...nel.org>, <sudeep.holla@....com>,
<catalin.marinas@....com>, <will@...nel.org>
Subject: Re: [PATCH] ACPI / amba: Drop unnecessary check for registered
amba_dummy_clk
Hi Youwan,
Please use v4 for your patch subject which was suggested by Sudeep:
[PATCH v4] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk
On 2024/6/20 21:37, Youwan Wang wrote:
> amba_register_dummy_clk() is called only once from acpi_amba_init()
> and acpi_amba_init() itself is called once during the initialisation.
> amba_dummy_clk can't be initialised before this in any other code
> path and hence the check for already registered amba_dummy_clk is
> not necessary. Drop the same.
>
> Signed-off-by: Youwan Wang <youwan@...china.com>
> Acked-by: Sudeep Holla <sudeep.holla@....com>
> ---
> v1->v2->v3: Modify the commit log description
Please update it as follows:
Changes from v3:
- Update the commit message suggested by Sudeep;
- Add Acked-by from Sudeep;
- +Cc ARM64 maintainers Catalin and Will.
> ---
> drivers/acpi/arm64/amba.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/acpi/arm64/amba.c b/drivers/acpi/arm64/amba.c
> index 60be8ee1dbdc..ef438417cc80 100644
> --- a/drivers/acpi/arm64/amba.c
> +++ b/drivers/acpi/arm64/amba.c
> @@ -35,11 +35,7 @@ static const struct acpi_device_id amba_id_list[] = {
>
> static void amba_register_dummy_clk(void)
> {
> - static struct clk *amba_dummy_clk;
> -
> - /* If clock already registered */
> - if (amba_dummy_clk)
> - return;
> + struct clk *amba_dummy_clk;
>
> amba_dummy_clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, 0, 0);
> clk_register_clkdev(amba_dummy_clk, "apb_pclk", NULL);
With that updated,
Acked-by: Hanjun Guo <guohanjun@...wei.com>
Thanks
Hanjun
Powered by blists - more mailing lists