summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2022-10-26 15:46:58 +0200
committerStephen Boyd <sboyd@kernel.org>2022-12-07 13:54:01 -0800
commitef13f8b64728c4b4d28639bbcf30fe1314b18482 (patch)
tree3f320c1b78ae80dc2550048ae64d7bdf3bfe955f /drivers/clk/clk.c
parent9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff)
downloadlinux-ef13f8b64728c4b4d28639bbcf30fe1314b18482.tar.gz
linux-ef13f8b64728c4b4d28639bbcf30fe1314b18482.tar.bz2
linux-ef13f8b64728c4b4d28639bbcf30fe1314b18482.zip
clk: Store clk_core for clk_rate_request
The struct clk_rate_request is meant to store the context around a rate request such as the parent, boundaries, and so on. However, it doesn't store the clock the rate request is submitted to, which makes debugging difficult. Let's add a pointer to the relevant clk_core instance in order to improve the debugging of rate requests in a subsequent patch. Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://lore.kernel.org/r/20221018-clk-rate-request-tracing-v2-1-5170b363c413@cerno.tech Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index c3c3f8c07258..042e32acce0b 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -1464,6 +1464,7 @@ static void clk_core_init_rate_req(struct clk_core * const core,
memset(req, 0, sizeof(*req));
+ req->core = core;
req->rate = rate;
clk_core_get_boundaries(core, &req->min_rate, &req->max_rate);