diff mbox series

[1/1] clk: Fix best_parent_rate after moving code into a separate function

Message ID 20240131135604.1488157-2-kazuhiro3.hayashi@toshiba.co.jp (mailing list archive)
State Rejected
Headers show
Series clk: Fix for restructuring for no reparent case | expand

Commit Message

Kazuhiro Hayashi Jan. 31, 2024, 1:56 p.m. UTC
From: Marek Szyprowski <m.szyprowski@samsung.com>

commit be8fa5fd0a48fd2decc4de81ffe72bb3ceacecd9 upstream.

best_parent_rate entry is still being used in the code and needs to be
always updated regardless of the CLK_SET_RATE_NO_REPARENT flag.

Fixes: 1b4e99fda73f ("clk: Move no reparent case into a separate function")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20230613131631.270192-1-m.szyprowski@samsung.com
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Reported-by: Yuki Saito <yuki.saito@toshiba.co.jp>
Reviewed-by: Kazuhiro Hayashi <kazuhiro3.hayashi@toshiba.co.jp>
---
 drivers/clk/clk.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Pavel Machek Jan. 31, 2024, 11:17 a.m. UTC | #1
Hi!

Is there something wrong with the time here?

Date: Wed, 31 Jan 2024 22:56:04 +0900
From: Kazuhiro Hayashi <kazuhiro3.hayashi@toshiba.co.jp>
On Wed 2024-01-31 22:56:04, Kazuhiro Hayashi wrote:

pavel@duo:~$ date
Wed 31 Jan 2024 12:15:57 PM CET

This will "fix" itself in two hours, but I wonder what went wrong
there.

Best regards,
								Pavel
Kazuhiro Hayashi Feb. 1, 2024, 4:51 a.m. UTC | #2
Hello Pavel,

> Is there something wrong with the time here?

Thanks for pointing this out.
Yes, the time in my environment was wrong due to recent setting changes...
Let me resend the patch just in case.

Best regards,
Kazu

> -----Original Message-----
> From: cip-dev@lists.cip-project.org <cip-dev@lists.cip-project.org> On Behalf Of Pavel Machek
> Sent: Wednesday, January 31, 2024 8:17 PM
> To: hayashi kazuhiro(林 和宏 DME ○DIG□MPS○MP4) <kazuhiro3.hayashi@toshiba.co.jp>
> Cc: cip-dev@lists.cip-project.org; iwamatsu nobuhiro(岩松 信洋 ○DITC□DIT○OST)
> <nobuhiro1.iwamatsu@toshiba.co.jp>; pavel@denx.de; biju.das.jz@bp.renesas.com; saito yuki(齊藤 優貴 DME ○D
> IG□EAS○EA3) <yuki.saito@toshiba.co.jp>
> Subject: Re: [cip-dev] [PATCH 1/1] clk: Fix best_parent_rate after moving code into a separate function
> 
> Hi!
> 
> Is there something wrong with the time here?
> 
> Date: Wed, 31 Jan 2024 22:56:04 +0900
> From: Kazuhiro Hayashi <kazuhiro3.hayashi@toshiba.co.jp>
> On Wed 2024-01-31 22:56:04, Kazuhiro Hayashi wrote:
> 
> pavel@duo:~$ date
> Wed 31 Jan 2024 12:15:57 PM CET
> 
> This will "fix" itself in two hours, but I wonder what went wrong
> there.
> 
> Best regards,
> 								Pavel
> --
> DENX Software Engineering GmbH,        Managing Director: Erika Unter
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
diff mbox series

Patch

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index fe61fdc7c025..c048c6b1b8c3 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -614,6 +614,7 @@  clk_core_determine_rate_no_reparent(struct clk_hw *hw,
 		best = clk_core_get_rate_nolock(core);
 	}
 
+	req->best_parent_rate = best;
 	req->rate = best;
 
 	return 0;