Re: [PATCH V8 06/14] rust: Add bare minimal bindings for clk framework

From: Stephen Boyd
Date: Mon Feb 10 2025 - 17:08:05 EST


Quoting Danilo Krummrich (2025-02-06 15:11:31)
> On Thu, Feb 06, 2025 at 12:05:59PM -0800, Stephen Boyd wrote:
>
> > as most clk consumer operations bail out early in that case.
>
> Most? Does that mean NULL isn't *always* valid?

I'm hedging because the common clk framework is just one implementation
of the clk.h API in the kernel. We still have a couple other
implementations (sadly) where I haven't checked to see what they do if a
NULL pointer is passed in. But NULL should always be a valid clk handle
per the clk.h API documentation, so an implementation that fails at that
is broken.