[PATCH] firmware: arm_scmi: Rename scmi_{msg_,}clock_config_{get,set}_{2,21}

Cristian Marussi cristian.marussi at arm.com
Wed Sep 27 04:15:16 PDT 2023


On Mon, Sep 25, 2023 at 11:15:57AM +0100, Sudeep Holla wrote:
> It is very confusing to use *_v2 for everything applicable until SCMI
> clock protocol version v2.0 including v1.0 for example. So let us rename
> such that *_v2 is used only for SCMI clock protocol v2.1 onwards. Also
> add comment to indicate the same explicitly.
> 

Hi Sudeep,

looking back at this, indeed, I remember being unsure if it was better
to use the v2/v21 naming scheme or the one that this patch propose.

Revisiting this now, I have to say that I agree with you, but why you
have also renamed _v21 to v2 ? The idea was to match the exact protocol
version ( I see that you added a comment anyway...)

IOW, the day some further new non-backward compatible features will be
possibly introduced (say clock v3), we could go like:

 - _config_set_v21: only v2.1 (the one you have renamed to v2)
 - _config_set_v3: only v3
 - _config_set : everything else, i.e. up to v2.0 (as you've renamed
   now)

I have no string opinions anyway, so I am fine also with this version of
the patch...better than the original brain-dead naming scheme that I had
chosen indeed :P

Thanks,
Cristian



More information about the linux-arm-kernel mailing list