* pmdomain: renesas: rcar: Use str_on_off() helper in rcar_sysc_power() and rcar_gen4_sysc_power()
@ 2025-05-29 2:13 shao.mingyin
2025-05-29 6:41 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: shao.mingyin @ 2025-05-29 2:13 UTC (permalink / raw)
To: ulf.hansson
Cc: geert+renesas, magnus.damm, linux-pm, linux-renesas-soc,
linux-kernel, yang.yang29, xu.xin16, yang.tao172, ye.xingchen
From: Shao Mingyin <shao.mingyin@zte.com.cn>
Remove hard-coded strings by using the str_on_off() helper function.
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
---
drivers/pmdomain/renesas/rcar-gen4-sysc.c | 3 ++-
drivers/pmdomain/renesas/rcar-sysc.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/pmdomain/renesas/rcar-gen4-sysc.c b/drivers/pmdomain/renesas/rcar-gen4-sysc.c
index e001b5c25bed..c8aa7538e95f 100644
--- a/drivers/pmdomain/renesas/rcar-gen4-sysc.c
+++ b/drivers/pmdomain/renesas/rcar-gen4-sysc.c
@@ -18,6 +18,7 @@
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/types.h>
+#include <linux/string_choices.h>
#include "rcar-gen4-sysc.h"
@@ -171,7 +172,7 @@ static int rcar_gen4_sysc_power(u8 pdr, bool on)
out:
spin_unlock_irqrestore(&rcar_gen4_sysc_lock, flags);
- pr_debug("sysc power %s domain %d: %08x -> %d\n", on ? "on" : "off",
+ pr_debug("sysc power %s domain %d: %08x -> %d\n", str_on_off(on),
pdr, ioread32(rcar_gen4_sysc_base + SYSCISCR(reg_idx)), ret);
return ret;
}
diff --git a/drivers/pmdomain/renesas/rcar-sysc.c b/drivers/pmdomain/renesas/rcar-sysc.c
index 047495f54e8a..dae01ca0ef6a 100644
--- a/drivers/pmdomain/renesas/rcar-sysc.c
+++ b/drivers/pmdomain/renesas/rcar-sysc.c
@@ -17,6 +17,7 @@
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/soc/renesas/rcar-sysc.h>
+#include <linux/string_choices.h>
#include "rcar-sysc.h"
@@ -162,7 +163,7 @@ static int rcar_sysc_power(const struct rcar_sysc_pd *pd, bool on)
spin_unlock_irqrestore(&rcar_sysc_lock, flags);
- pr_debug("sysc power %s domain %d: %08x -> %d\n", on ? "on" : "off",
+ pr_debug("sysc power %s domain %d: %08x -> %d\n", str_on_off(on),
pd->isr_bit, ioread32(rcar_sysc_base + SYSCISR), ret);
return ret;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: pmdomain: renesas: rcar: Use str_on_off() helper in rcar_sysc_power() and rcar_gen4_sysc_power()
2025-05-29 2:13 pmdomain: renesas: rcar: Use str_on_off() helper in rcar_sysc_power() and rcar_gen4_sysc_power() shao.mingyin
@ 2025-05-29 6:41 ` Krzysztof Kozlowski
2025-05-30 8:07 ` Geert Uytterhoeven
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-29 6:41 UTC (permalink / raw)
To: shao.mingyin, ulf.hansson
Cc: geert+renesas, magnus.damm, linux-pm, linux-renesas-soc,
linux-kernel, yang.yang29, xu.xin16, yang.tao172, ye.xingchen
On 29/05/2025 04:13, shao.mingyin@zte.com.cn wrote:
> From: Shao Mingyin <shao.mingyin@zte.com.cn>
>
> Remove hard-coded strings by using the str_on_off() helper function.
>
> Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
> ---
> drivers/pmdomain/renesas/rcar-gen4-sysc.c | 3 ++-
> drivers/pmdomain/renesas/rcar-sysc.c | 3 ++-
Stop sending such trivial patches one driver per patch, but entire
subsystem in one patch. That's a lot of churn, considering this was
rejected:
https://lore.kernel.org/all/20250114203547.1013010-1-krzysztof.kozlowski@linaro.org/
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pmdomain: renesas: rcar: Use str_on_off() helper in rcar_sysc_power() and rcar_gen4_sysc_power()
2025-05-29 6:41 ` Krzysztof Kozlowski
@ 2025-05-30 8:07 ` Geert Uytterhoeven
2025-05-31 13:39 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2025-05-30 8:07 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: shao.mingyin, ulf.hansson, magnus.damm, linux-pm,
linux-renesas-soc, linux-kernel, yang.yang29, xu.xin16,
yang.tao172, ye.xingchen
Hi Krzysztof,
On Thu, 29 May 2025 at 08:41, Krzysztof Kozlowski <krzk@kernel.org> wrote:
> On 29/05/2025 04:13, shao.mingyin@zte.com.cn wrote:
> > From: Shao Mingyin <shao.mingyin@zte.com.cn>
> >
> > Remove hard-coded strings by using the str_on_off() helper function.
> >
> > Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
> > ---
> > drivers/pmdomain/renesas/rcar-gen4-sysc.c | 3 ++-
> > drivers/pmdomain/renesas/rcar-sysc.c | 3 ++-
>
> Stop sending such trivial patches one driver per patch, but entire
> subsystem in one patch. That's a lot of churn, considering this was
> rejected:
Was it? I only see my Rb, and a review comment asking for more...
> https://lore.kernel.org/all/20250114203547.1013010-1-krzysztof.kozlowski@linaro.org/
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pmdomain: renesas: rcar: Use str_on_off() helper in rcar_sysc_power() and rcar_gen4_sysc_power()
2025-05-30 8:07 ` Geert Uytterhoeven
@ 2025-05-31 13:39 ` Krzysztof Kozlowski
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-31 13:39 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: shao.mingyin, ulf.hansson, magnus.damm, linux-pm,
linux-renesas-soc, linux-kernel, yang.yang29, xu.xin16,
yang.tao172, ye.xingchen
On 30/05/2025 10:07, Geert Uytterhoeven wrote:
> Hi Krzysztof,
>
> On Thu, 29 May 2025 at 08:41, Krzysztof Kozlowski <krzk@kernel.org> wrote:
>> On 29/05/2025 04:13, shao.mingyin@zte.com.cn wrote:
>>> From: Shao Mingyin <shao.mingyin@zte.com.cn>
>>>
>>> Remove hard-coded strings by using the str_on_off() helper function.
>>>
>>> Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
>>> ---
>>> drivers/pmdomain/renesas/rcar-gen4-sysc.c | 3 ++-
>>> drivers/pmdomain/renesas/rcar-sysc.c | 3 ++-
>>
>> Stop sending such trivial patches one driver per patch, but entire
>> subsystem in one patch. That's a lot of churn, considering this was
>> rejected:
>
> Was it? I only see my Rb, and a review comment asking for more...
>
>> https://lore.kernel.org/all/20250114203547.1013010-1-krzysztof.kozlowski@linaro.org/
Indeed this one was not, but my other patchsets were - several
subsystems clearly expressed that this is just a churn. So if doing
this, because you do not consider it a churn, do it all at once to, not
line by line.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-05-31 13:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 2:13 pmdomain: renesas: rcar: Use str_on_off() helper in rcar_sysc_power() and rcar_gen4_sysc_power() shao.mingyin
2025-05-29 6:41 ` Krzysztof Kozlowski
2025-05-30 8:07 ` Geert Uytterhoeven
2025-05-31 13:39 ` Krzysztof Kozlowski
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).