* [PATCH] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk
@ 2024-06-20 0:59 Youwan Wang
2024-06-20 8:38 ` Sudeep Holla
0 siblings, 1 reply; 4+ messages in thread
From: Youwan Wang @ 2024-06-20 0:59 UTC (permalink / raw)
To: lpieralisi
Cc: guohanjun, linux-kernel, linux-arm-kernel, lenb, rafael,
sudeep.holla, linux-acpi, Youwan Wang
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@nfschina.com>
---
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);
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk
2024-06-20 0:59 [PATCH] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk Youwan Wang
@ 2024-06-20 8:38 ` Sudeep Holla
0 siblings, 0 replies; 4+ messages in thread
From: Sudeep Holla @ 2024-06-20 8:38 UTC (permalink / raw)
To: Youwan Wang
Cc: lpieralisi, guohanjun, linux-kernel, linux-arm-kernel, lenb,
rafael, linux-acpi
On Thu, Jun 20, 2024 at 08:59:30AM +0800, 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.
>
You are not reading my response correctly and fixing all the issues.
1. You had v3 and now this is again v1 ? Perhaps v4 ?
2. You missed to add my Acked-by which I gave to your v2
3. This is v4 and new reviewers of this patch have absolutely no idea
what got changed from v1->v2->v3->v4. It is always good to add change
log describing what changed across these versions
4. I asked you to add ARM64 maintainers as we would request them to pick
this up via ARM64 tree.
Catalin Marinas <catalin.marinas@arm.com
Will Deacon <will@kernel.org>
I will ignore your patches if these are not fixed, I have told you same
thing twice now.
--
Regards,
Sudeep
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk
2024-06-18 11:58 [PATCH v3] ACPI /amba: Fix meaningless code for amba_register_dummy_clk() Youwan Wang
@ 2024-06-20 13:37 ` Youwan Wang
2024-06-24 2:09 ` Hanjun Guo
0 siblings, 1 reply; 4+ messages in thread
From: Youwan Wang @ 2024-06-20 13:37 UTC (permalink / raw)
To: youwan
Cc: guohanjun, lenb, linux-acpi, linux-arm-kernel, linux-kernel,
lpieralisi, rafael, sudeep.holla, catalin.marinas, will
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@nfschina.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
---
v1->v2->v3: Modify the commit log description
---
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);
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk
2024-06-20 13:37 ` [PATCH] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk Youwan Wang
@ 2024-06-24 2:09 ` Hanjun Guo
0 siblings, 0 replies; 4+ messages in thread
From: Hanjun Guo @ 2024-06-24 2:09 UTC (permalink / raw)
To: Youwan Wang
Cc: lenb, linux-acpi, linux-arm-kernel, linux-kernel, lpieralisi,
rafael, sudeep.holla, catalin.marinas, will
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@nfschina.com>
> Acked-by: Sudeep Holla <sudeep.holla@arm.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@huawei.com>
Thanks
Hanjun
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-24 2:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-20 0:59 [PATCH] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk Youwan Wang
2024-06-20 8:38 ` Sudeep Holla
-- strict thread matches above, loose matches on Subject: below --
2024-06-18 11:58 [PATCH v3] ACPI /amba: Fix meaningless code for amba_register_dummy_clk() Youwan Wang
2024-06-20 13:37 ` [PATCH] ACPI / amba: Drop unnecessary check for registered amba_dummy_clk Youwan Wang
2024-06-24 2:09 ` Hanjun Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).