mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
Move the FF-A core bring-up and teardown paths into platform driver probe and remove callbacks, and register a synthetic arm-ffa platform device to bind the driver. This makes the FF-A core lifetime follow the driver model while keeping the device creation internal to the FF-A core. Use normal platform driver registration so the probe path has standard driver-core semantics. The synthetic platform device is a temporary bridge until ACPI and devicetree describe the FF-A core device or object. Once those firmware description paths are defined, the internal platform device creation can be dropped and the driver can bind to the firmware-described device directly. Since the transport selection now happens from the platform probe path, drop the __init annotation from ffa_transport_init(). Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com> Link: https://patch.msgid.link/20260508-b4-ffa_plat_dev-v1-2-c5a30f8cf7b8@kernel.org Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
30 lines
637 B
C
30 lines
637 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2021 ARM Ltd.
|
|
*/
|
|
|
|
#ifndef _FFA_COMMON_H
|
|
#define _FFA_COMMON_H
|
|
|
|
#include <linux/arm_ffa.h>
|
|
#include <linux/arm-smccc.h>
|
|
#include <linux/err.h>
|
|
|
|
typedef struct arm_smccc_1_2_regs ffa_value_t;
|
|
|
|
typedef void (ffa_fn)(ffa_value_t, ffa_value_t *);
|
|
|
|
bool ffa_device_is_valid(struct ffa_device *ffa_dev);
|
|
void ffa_device_match_uuid(struct ffa_device *ffa_dev, const uuid_t *uuid);
|
|
|
|
#ifdef CONFIG_ARM_FFA_SMCCC
|
|
int ffa_transport_init(ffa_fn **invoke_ffa_fn);
|
|
#else
|
|
static inline int ffa_transport_init(ffa_fn **invoke_ffa_fn)
|
|
{
|
|
return -EOPNOTSUPP;
|
|
}
|
|
#endif
|
|
|
|
#endif /* _FFA_COMMON_H */
|