Skip to contentSkip to conversation

clk: fixed_rate: add dummy disable() function

PATCH In review Samuel Holland 2 participants 2 messages Oct 13, 2021 – Oct 20, 2021 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: fixed_rate: add dummy disable() function

commit 6bf6d81c1112 ("clk: fixed_rate: add dummy enable() function") implemented .enable, so fixed rate clocks can be used where drivers might call clk_enable(). Implement the .disable op for the same reason; some drivers, e.g. USB PHYs, may attempt to disable clocks at runtime.

---

 drivers/clk/clk_fixed_rate.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/clk_fixed_rate.c +1 -0
index e0dc4ab85f..c5a2a42c92 100644
@@ -26,6 +26,7 @@ static int dummy_enable(struct clk *clk)
 const struct clk_ops clk_fixed_rate_ops = {
 	.get_rate = clk_fixed_rate_get_rate,
 	.enable = dummy_enable,
+	.disable = dummy_enable,
 };
 
 void clk_fixed_rate_ofdata_to_plat_(struct udevice *dev,
Signature · 1 line
2.32.0
#1 lore raw
Quoted 6 lines · Samuel Holland

commit 6bf6d81c1112 ("clk: fixed_rate: add dummy enable() function") implemented .enable, so fixed rate clocks can be used where drivers might call clk_enable(). Implement the .disable op for the same reason; some drivers, e.g. USB PHYs, may attempt to disable clocks at runtime.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom