Commit b7c9f326 authored by Sudeep Holla's avatar Sudeep Holla
Browse files

firmware: arm_ffa: Replace UUID buffer to standard UUID format



Currently ffa_partition_info structure holds the UUID in the format
compatible with the firmware interface. However, most of the functions
in the FF-A core driver deals directly with uuid_t type.

Replace UUID buffer to standard UUID format in the ffa_partition_info
structure.

Tested-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Message-Id: <20250217-ffa_updates-v3-2-bd1d9de615e7@arm.com>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 1ed14652
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -192,7 +192,6 @@ ffa_device_register(const struct ffa_partition_info *part_info,
		    const struct ffa_ops *ops)
{
	int id, ret;
	uuid_t uuid;
	struct device *dev;
	struct ffa_device *ffa_dev;

@@ -218,8 +217,7 @@ ffa_device_register(const struct ffa_partition_info *part_info,
	ffa_dev->vm_id = part_info->id;
	ffa_dev->properties = part_info->properties;
	ffa_dev->ops = ops;
	import_uuid(&uuid, (u8 *)part_info->uuid);
	uuid_copy(&ffa_dev->uuid, &uuid);
	uuid_copy(&ffa_dev->uuid, &part_info->uuid);

	ret = device_register(&ffa_dev->dev);
	if (ret) {
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ struct ffa_partition_info {
/* partition runs in the AArch64 execution state. */
#define FFA_PARTITION_AARCH64_EXEC	BIT(8)
	u32 properties;
	u32 uuid[4];
	uuid_t uuid;
};

static inline