Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Saravana Kannan <saravanak@google.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Colin Foster <colin.foster@in-advantage.com>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Geert 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.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Saravana Kannan and committed by
Greg Kroah-Hartman
96da4a99 e2bbea77

+2 -1
+2 -1
drivers/firmware/arm_scmi/bus.c
··· 12 12 #include <linux/kernel.h> 13 13 #include <linux/slab.h> 14 14 #include <linux/device.h> 15 + #include <linux/of.h> 15 16 16 17 #include "common.h" 17 18 ··· 192 191 scmi_dev->id = id; 193 192 scmi_dev->protocol_id = protocol; 194 193 scmi_dev->dev.parent = parent; 195 - scmi_dev->dev.of_node = np; 194 + device_set_node(&scmi_dev->dev, of_fwnode_handle(np)); 196 195 scmi_dev->dev.bus = &scmi_bus_type; 197 196 scmi_dev->dev.release = scmi_device_release; 198 197 dev_set_name(&scmi_dev->dev, "scmi_dev.%d", id);