[PATCH v5 1/3] firmware: smccc: coco: Manage arm-smccc platform device and CCA auxiliary drivers
Greg KH
gregkh at linuxfoundation.org
Thu May 14 10:13:36 PDT 2026
On Thu, May 14, 2026 at 08:08:01PM +0530, Aneesh Kumar K.V wrote:
> Catalin Marinas <catalin.marinas at arm.com> writes:
>
> > On Thu, May 14, 2026 at 02:55:48PM +0200, Greg Kroah-Hartman wrote:
> >> On Thu, May 14, 2026 at 12:04:13PM +0100, Suzuki K Poulose wrote:
> >> > On 14/05/2026 10:40, Aneesh Kumar K.V (Arm) wrote:
> >> > > Make the SMCCC driver responsible for registering the arm-smccc platform
> >> > > device and after confirming the relevant SMCCC function IDs, create
> >> > > the arm_cca_guest auxiliary device.
> >> > >
> >> >
> >> > There are a few changes squashed in to this patch. Please could we
> >> > split the patch in the following order ?
> >> >
> >> > 1. Add platform device for arm-smccc
> >>
> >> Do not make any more "fake" platform devices please.
> >>
> >> > 2. Move TRNG to Auxilliary Device - (Even though it is a later patch, move
> >> > it before the RSI changes)
> >>
> >> No, move it to the faux api please.
> >
> > So should we end up with:
> >
> > /sys/devices/faux/arm-smccc/
> > smccc_trng/
> > arm-rsi-dev/
> > tsm/tsm0
> >
> > /sys/class/tsm/tsm0
> > -> ../../devices/faux/arm-smccc/arm-rsi-dev/tsm/tsm0
> >
> > /sys/firmware/cca/
> > realm_guest
>
> But we need the ability to autoload different TSM backend drivers based
> on the support/availability of these SMCCC function-id ranges. faux
> device don't support that.
If you really need to "autoload" things, then do it like any other
normal bus or class does this, and send the proper uevents as needed.
Don't abuse the auxbus code for this please!
thanks,
greg k-h
More information about the linux-arm-kernel
mailing list