diff options
author | 2025-03-17 10:31:24 +0000 | |
---|---|---|
committer | 2025-04-14 10:12:02 +0100 | |
commit | 953f4ce0a8d38ad87cade45355f5647071272a3a (patch) | |
tree | 1ec2c3be37553300635477639de2f8d3f2efe9e5 | |
parent | firmware: arm_scmi: Refactor error logging from SCMI device creation to single helper (diff) | |
download | linux-rng-953f4ce0a8d38ad87cade45355f5647071272a3a.tar.xz linux-rng-953f4ce0a8d38ad87cade45355f5647071272a3a.zip |
firmware: arm_scmi: Assign correct parent to arm-scmi platform device
With the decoupling of transport drivers from the SCMI core, the
"arm-scmi" platform device is now created dynamically from the probed
transport driver.
Currently, this "arm-scmi" platform device is added to the root of
the platform bus since no parent is assigned. However, the transport
platform device, created from the "firmware:scmi" node in the device
tree, should be considered its parent.
Ensure that the parent device is correctly set for the "arm-scmi"
platform device, aligning it with the correct transport hierarchy.
This will be more useful on systems with multiple transport and/or
SCMI firmware instances as the hierarchy is maintained correctly.
Message-Id: <20250317-b4-scmi_minor_cleanup-v2-4-f4be99bd9864@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
-rw-r--r-- | drivers/firmware/arm_scmi/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firmware/arm_scmi/common.h b/drivers/firmware/arm_scmi/common.h index 10ea7962323e..dab758c5fdea 100644 --- a/drivers/firmware/arm_scmi/common.h +++ b/drivers/firmware/arm_scmi/common.h @@ -475,6 +475,7 @@ static int __tag##_probe(struct platform_device *pdev) \ if (ret) \ goto err; \ \ + spdev->dev.parent = dev; \ ret = platform_device_add(spdev); \ if (ret) \ goto err; \ |