mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
SMCCC-discovered firmware services are currently represented by separate platform devices, such as smccc_trng and arm-cca-dev. Those devices do not represent independent DT/ACPI-described platform resources; they are features of the SMCCC firmware interface. Add an Arm SMCCC bus for services discovered through the SMCCC firmware interface. The bus provides SMCCC device and driver registration helpers, function ID based matching, modalias generation, and a sysfs modalias attribute so SMCCC service drivers can bind to discovered firmware services and autoload as modules. Follow-up changes can then register SMCCC firmware services as arm-smccc devices instead of creating independent per-feature platform devices. Based on arm_ffa code Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Catalin Marinas <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Lorenzo Pieralisi <[email protected]> Cc: Sudeep Holla <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Nicolas Schier <[email protected]> Signed-off-by: Aneesh Kumar K.V (Arm) <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>