mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clk: nomadik: Correct str_enabled_disabled() SXTALO case
@ 2025-01-15  8:19 Krzysztof Kozlowski
  2025-01-15 11:28 ` Linus Walleij
  2025-01-15 20:28 ` Stephen Boyd
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-15  8:19 UTC (permalink / raw)
  To: Linus Walleij, Michael Turquette, Stephen Boyd, Florian Fainelli,
	Krzysztof Kozlowski, linux-arm-kernel, linux-clk, linux-kernel
  Cc: Stanislav Jakubek

Commit 1cd1c8f400e9 ("clk: Use str_enable_disable-like helpers") should
use reversed check for SXTALO.

Reported-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Closes: https://lore.kernel.org/all/Z4diEj__bbQl4ULS@standask-GA-A55M-S2HP/
Fixes: 1cd1c8f400e9 ("clk: Use str_enable_disable-like helpers")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/clk/clk-nomadik.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-nomadik.c b/drivers/clk/clk-nomadik.c
index f3a73ac5a1b9..fc0aeb4247f2 100644
--- a/drivers/clk/clk-nomadik.c
+++ b/drivers/clk/clk-nomadik.c
@@ -117,7 +117,7 @@ static void __init nomadik_src_init(void)
 
 	val = readl(src_base + SRC_XTALCR);
 	pr_info("SXTALO is %s\n",
-		str_enabled_disabled(val & SRC_XTALCR_SXTALDIS));
+		str_disabled_enabled(val & SRC_XTALCR_SXTALDIS));
 	pr_info("MXTAL is %s\n",
 		str_enabled_disabled(val & SRC_XTALCR_MXTALSTAT));
 	if (of_property_read_bool(np, "disable-sxtalo")) {
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: nomadik: Correct str_enabled_disabled() SXTALO case
  2025-01-15  8:19 [PATCH] clk: nomadik: Correct str_enabled_disabled() SXTALO case Krzysztof Kozlowski
@ 2025-01-15 11:28 ` Linus Walleij
  2025-01-15 20:28 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2025-01-15 11:28 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Michael Turquette, Stephen Boyd, Florian Fainelli,
	linux-arm-kernel, linux-clk, linux-kernel, Stanislav Jakubek

On Wed, Jan 15, 2025 at 9:19 AM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:

> Commit 1cd1c8f400e9 ("clk: Use str_enable_disable-like helpers") should
> use reversed check for SXTALO.
>
> Reported-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> Closes: https://lore.kernel.org/all/Z4diEj__bbQl4ULS@standask-GA-A55M-S2HP/
> Fixes: 1cd1c8f400e9 ("clk: Use str_enable_disable-like helpers")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Thanks a lot for fixing up this Krzysztof!
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: nomadik: Correct str_enabled_disabled() SXTALO case
  2025-01-15  8:19 [PATCH] clk: nomadik: Correct str_enabled_disabled() SXTALO case Krzysztof Kozlowski
  2025-01-15 11:28 ` Linus Walleij
@ 2025-01-15 20:28 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2025-01-15 20:28 UTC (permalink / raw)
  To: Florian Fainelli, Krzysztof Kozlowski, Linus Walleij,
	Michael Turquette, linux-arm-kernel, linux-clk, linux-kernel
  Cc: Stanislav Jakubek

Quoting Krzysztof Kozlowski (2025-01-15 00:19:14)
> Commit 1cd1c8f400e9 ("clk: Use str_enable_disable-like helpers") should
> use reversed check for SXTALO.
> 
> Reported-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> Closes: https://lore.kernel.org/all/Z4diEj__bbQl4ULS@standask-GA-A55M-S2HP/
> Fixes: 1cd1c8f400e9 ("clk: Use str_enable_disable-like helpers")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-15 20:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-15  8:19 [PATCH] clk: nomadik: Correct str_enabled_disabled() SXTALO case Krzysztof Kozlowski
2025-01-15 11:28 ` Linus Walleij
2025-01-15 20:28 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®