> > @@ -141,11 +141,14 @@ struct scmi_base_discover_impl_version_out {
> >    * @status:         SCMI command status
> >    * @num_protocols:  Number of SCMI protocols in @protocol
> >    * @protocols:              Array of packed SCMI protocol ID's
> > + *
> > + * The number of elements of @protocols is specified by callee-side.
> > + Currently,
> > + * set it to 4 is enough for i.MX95.
> >    */
> >   struct scmi_base_discover_list_protocols_out {
> >       s32 status;
> >       u32 num_protocols;
> > -     u32 protocols[3];
> > +     u32 protocols[4];
> Can this be made somehow future-proof? For example, figure out how many
> protocols are supported, and then malloc this structure with the right size 
> and
> query again ?

Hi Marek,

Currently, 4 is enough. 10 protocols are defined in Arm® System Control and 
Management Interface Platform Design Document Version 3.2. I can make a new 
patch as you said in the future.

Best Regards,
Alice Guo


Reply via email to