[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211103122441.3208576-1-alexander.stein@ew.tq-group.com>
Date: Wed, 3 Nov 2021 13:24:41 +0100
From: Alexander Stein <alexander.stein@...tq-group.com>
To: Michael Turquette <mturquette@...libre.com>,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Cc: Alexander Stein <alexander.stein@...tq-group.com>,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/1] clk: composite: Fix 'switching' to same clock
During commit 6594988fd625 ("clk: composite: Use rate_ops.determine_rate
when also a mux is available") setting req->best_parent_hw got lost,
so best_parent_hw stays NULL during switch to the same parent. This
results in the (debug) message:
clk_calc_new_rates: lcdif_pixel not gated but wants to reparent
and the following rate change is dropped.
Fixes: 6594988fd625 ("clk: composite: Use rate_ops.determine_rate when also a mux is available")
Signed-off-by: Alexander Stein <alexander.stein@...tq-group.com>
---
This is on linux-next tag 'next-20211101' and platform is a custom
imx8mq board.
drivers/clk/clk-composite.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c
index c04ae0e7e4b4..b9c5f904f535 100644
--- a/drivers/clk/clk-composite.c
+++ b/drivers/clk/clk-composite.c
@@ -97,6 +97,7 @@ static int clk_composite_determine_rate(struct clk_hw *hw,
return ret;
req->rate = tmp_req.rate;
+ req->best_parent_hw = tmp_req.best_parent_hw;
req->best_parent_rate = tmp_req.best_parent_rate;
return 0;
--
2.25.1
Powered by blists - more mailing lists