[PATCH RFC v2 1/6] firmware: arm-smccc: introduce match function

Yeoreum Yun yeoreum.yun at arm.com
Thu Dec 3 03:36:52 PST 2026


On Wed, Dec 02, 2026 at 02:17:04PM -0800, Jonathan Cameron wrote:
> On Fri, 27 Nov 2026 15:28:31 +0000
> Yeoreum Yun <yeoreum.yun at arm.com> wrote:
> 
> > Somce of protocol based on the smc is not enough to match smccc-device
> > and smccc-driver with func_id only.
> > 
> > For example, firme interface will create smccc-device per service
> > and this requires to chech whether firme smccc-device is for each
> > service.
> > 
> > To resolve this, add match function and match parameter for device
> > which is set at the time of smccc-device creation so that smccc-driver
> > could match proper smccc-device with match parameter and driver specific
> > match function.
> > 
> > This match parameter is defined under smc func-id. IOW, devices which
> > share the func-id should have the same type for module parameter so
> > that each driver under the same func-id can check extra one with
> > match parameter type.
> That last sentence doesn't quite work.   Perhaps
> 
> each driver can filter first on func-id before evaluating the
> match function.

Might with below:

  This match parameter is defined under smc func-id. IOW, devices which
  share the func-id should have the same type for module parameter so
  that each driver can filter first on func-id before evaluating the
  match function with match parameter.

> > 
> > Signed-off-by: Yeoreum Yun <yeoreum.yun at arm.com>
> Other than that this is a reasonably neat solution.  Whether
> it ends up flexible enough in the long run for all the crazy stuff
> that gets added to the spec remains to be seen, but for now
> LGTM
> 
> Reviewed-by: Jonathan Cameron <jonathan.cameron at oss.qualcomm.com>

Thanks!

-- 
Sincerely,
Yeoreum Yun



More information about the linux-arm-kernel mailing list