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

Jonathan Cameron jonathan.cameron at oss.qualcomm.com
Wed Dec 2 14:17:04 PST 2026


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.

> 
> 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>




More information about the linux-arm-kernel mailing list