public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* 32-bit clocks can't round above 2**31
@ 2025-10-16 10:09 John Watts
  2025-10-16 17:28 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: John Watts @ 2025-10-16 10:09 UTC (permalink / raw)
  To: linux-clk

Hi, just a small bug I spotted when debugging some code. Hope this helps.

--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -1572,7 +1572,7 @@ late_initcall_sync(clk_disable_unused);
 static int clk_core_determine_round_nolock(struct clk_core *core,
                                           struct clk_rate_request *req)
 {
-       long rate;
+       unsigned long rate;
 
        lockdep_assert_held(&prepare_lock);


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

end of thread, other threads:[~2025-10-16 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-16 10:09 32-bit clocks can't round above 2**31 John Watts
2025-10-16 17:28 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox