Re: [PATCH v3 1/3] rust: clk: use the type-state pattern
From: Maxime Ripard
Date: Thu Feb 12 2026 - 11:52:17 EST
On Thu, Feb 12, 2026 at 03:02:09PM +0100, Alice Ryhl wrote:
> On Thu, Feb 12, 2026 at 2:38 PM Maxime Ripard <mripard@xxxxxxxxxx> wrote:
> > > If Daniel's proposal is inconvenient for some drivers, it would be far
> > > better to have a third API that is both safe and convenient for those
> > > drivers.
> >
> > Yeah, I guess I was expecting that one to come after we have a few
> > unsafe drivers using it and we do need to consolidate / make it safe.
>
> For most things, we implemented and used the safe API from the very
> start. I'm not going to say there are never exceptions to that because
> there *are* exceptions. But I don't really see why clk should be one
> of them.
Ack. As long as we keep the door open for such an API, I'm ok with it then.
Maxime
Attachment:
signature.asc
Description: PGP signature