All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kazuhiro Hayashi <kazuhiro3.hayashi@toshiba.co.jp>
To: cip-dev@lists.cip-project.org, nobuhiro1.iwamatsu@toshiba.co.jp,
	pavel@denx.de
Cc: biju.das.jz@bp.renesas.com, yuki.saito@toshiba.co.jp
Subject: [PATCH 1/1] clk: Fix best_parent_rate after moving code into a separate function
Date: Wed, 31 Jan 2024 22:56:04 +0900	[thread overview]
Message-ID: <20240131135604.1488157-2-kazuhiro3.hayashi@toshiba.co.jp> (raw)
In-Reply-To: <20240131135604.1488157-1-kazuhiro3.hayashi@toshiba.co.jp>

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(+)

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;
-- 
2.30.2




  parent reply	other threads:[~2024-01-30 13:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-31 13:56 [PATCH 0/1] clk: Fix for restructuring for no reparent case Kazuhiro Hayashi
2024-01-31 11:12 ` Pavel Machek
2024-02-01  4:12   ` nobuhiro1.iwamatsu
2024-02-01  9:50     ` Pavel Machek
2024-01-31 13:56 ` Kazuhiro Hayashi [this message]
2024-01-31 11:17   ` [PATCH 1/1] clk: Fix best_parent_rate after moving code into a separate function Pavel Machek
2024-02-01  4:51     ` [cip-dev] " kazuhiro3.hayashi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240131135604.1488157-2-kazuhiro3.hayashi@toshiba.co.jp \
    --to=kazuhiro3.hayashi@toshiba.co.jp \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=nobuhiro1.iwamatsu@toshiba.co.jp \
    --cc=pavel@denx.de \
    --cc=yuki.saito@toshiba.co.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.