All of lore.kernel.org
 help / color / mirror / Atom feed
* Question: why call clk_prepare in pm_clk_acquire
@ 2022-09-08  7:33 Peng Fan
  2022-09-08 14:37 ` Ulf Hansson
  0 siblings, 1 reply; 18+ messages in thread
From: Peng Fan @ 2022-09-08  7:33 UTC (permalink / raw)
  To: ben.dooks, rafael.j.wysocki, dmitry.baryshkov, jonathanh, npitre,
	sudeep.holla, Ulf Hansson
  Cc: linux-pm, Aisheng Dong

Hi All,

We are facing an issue clk_set_rate fail with commit a3b884cef873 ("firmware: 
arm_scmi: Add clock management to the SCMI power domain") ,

we use scmi power domain, but not use scmi clk, but with upper commit, the clk is prepared 
when pm_clk_acquire.

However the clk has flag CLK_SET_RATE_GATE, clk_set_rate will fail in driver, because
clk is prepared in pm_clk_acquire.

Looking into drivers/base/power/clock_ops.c, I see pm_clk_suspend/pm_clk_resume
will handle clk prepare/unprepared, so why pm_clk_acquire will also prepare the clk?


Thanks,
Peng.

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

end of thread, other threads:[~2022-09-22  8:08 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08  7:33 Question: why call clk_prepare in pm_clk_acquire Peng Fan
2022-09-08 14:37 ` Ulf Hansson
2022-09-08 17:38   ` Sudeep Holla
2022-09-09 11:12     ` Ulf Hansson
2022-09-09 15:42       ` Sudeep Holla
2022-09-11  1:52         ` Peng Fan
2022-09-12 17:49         ` Geert Uytterhoeven
2022-09-12 17:58           ` Geert Uytterhoeven
2022-09-14 15:30             ` Sudeep Holla
2022-09-14 17:05               ` Nicolas Pitre
2022-09-19  9:53                 ` Ulf Hansson
2022-09-21 14:42                   ` Sudeep Holla
2022-09-22  8:08                     ` Ulf Hansson
2022-09-15  0:59               ` Peng Fan
2022-09-16 13:15                 ` Sudeep Holla
2022-09-11  1:47       ` Peng Fan
2022-09-11  1:31     ` Peng Fan
2022-09-12 13:01       ` Sudeep Holla

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.