notifying clock consumers of frequency change

Sam Winchenbach <[email protected]> Thu, 30 May 2024 12:57:40 +0000
Newsgroups org.kernelnewbies.kernelnewbies
Message-ID <SA1P110MB106974491B5A41641F4F1017BCF3A@SA1P110MB1069.NAMP110.PROD.OUTLOOK.COM>
Hello,

I am writing a driver for a frequency synthesizer that does not currently have any support in the kernel. This synthesizer is clocked by a fixed external oscillator.

In my driver, I:

  1.  Register the clock hardware with devm_clk_hw_register
  2.  Describe the clocks to the DTS nodes with devm_of_clk_add_hw_provider

Various external stimuli and commands (through IIO) can change the frequency of this synthesizer.
How do I notify downstream devices that the frequency has changed? Ultimately it looks like __clk_notify() is what I want to call, but that is a non-exported function.  Tracking it through, the function stack that calls this looks like it is used to request a new frequency, not to notify consumers that the frequency has changed.

Does anyone have any tips, or perhaps know of an in-tree driver I could study to understand this better?

Thanks.
-Sam

_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies