提交 96da4a99 编写于 作者: S Saravana Kannan 提交者: Greg Kroah-Hartman

firmware: arm_scmi: Set fwnode for the scmi_device

This allows fw_devlink to track and enforce supplier-consumer
dependencies for scmi_device.
Signed-off-by: NSaravana Kannan <saravanak@google.com>
Acked-by: NSudeep Holla <sudeep.holla@arm.com>
Tested-by: NColin Foster <colin.foster@in-advantage.com>
Tested-by: NSudeep Holla <sudeep.holla@arm.com>
Tested-by: NDouglas Anderson <dianders@chromium.org>
Tested-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Luca Weiss <luca.weiss@fairphone.com> # qcom/sm7225-fairphone-fp4
Link: https://lore.kernel.org/r/20230207014207.1678715-12-saravanak@google.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e2bbea77
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/of.h>
#include "common.h" #include "common.h"
...@@ -191,7 +192,7 @@ scmi_device_create(struct device_node *np, struct device *parent, int protocol, ...@@ -191,7 +192,7 @@ scmi_device_create(struct device_node *np, struct device *parent, int protocol,
scmi_dev->id = id; scmi_dev->id = id;
scmi_dev->protocol_id = protocol; scmi_dev->protocol_id = protocol;
scmi_dev->dev.parent = parent; scmi_dev->dev.parent = parent;
scmi_dev->dev.of_node = np; device_set_node(&scmi_dev->dev, of_fwnode_handle(np));
scmi_dev->dev.bus = &scmi_bus_type; scmi_dev->dev.bus = &scmi_bus_type;
scmi_dev->dev.release = scmi_device_release; scmi_dev->dev.release = scmi_device_release;
dev_set_name(&scmi_dev->dev, "scmi_dev.%d", id); dev_set_name(&scmi_dev->dev, "scmi_dev.%d", id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册