* [PATCH] clk: fixed_rate: add dummy disable() function
@ 2021-10-13 0:40 Samuel Holland
2021-10-20 0:46 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Holland @ 2021-10-13 0:40 UTC (permalink / raw)
To: Lukasz Majewski; +Cc: Samuel Holland, u-boot
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.
Signed-off-by: Samuel Holland <samuel@sholland.org>
---
drivers/clk/clk_fixed_rate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c
index e0dc4ab85f..c5a2a42c92 100644
--- a/drivers/clk/clk_fixed_rate.c
+++ b/drivers/clk/clk_fixed_rate.c
@@ -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,
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: fixed_rate: add dummy disable() function
2021-10-13 0:40 [PATCH] clk: fixed_rate: add dummy disable() function Samuel Holland
@ 2021-10-20 0:46 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2021-10-20 0:46 UTC (permalink / raw)
To: Samuel Holland; +Cc: Lukasz Majewski, u-boot
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
On Tue, Oct 12, 2021 at 07:40:29PM -0500, Samuel Holland wrote:
> 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.
>
> Signed-off-by: Samuel Holland <samuel@sholland.org>
Applied to u-boot/master, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-20 0:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 0:40 [PATCH] clk: fixed_rate: add dummy disable() function Samuel Holland
2021-10-20 0:46 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).