summaryrefslogtreecommitdiff
path: root/drivers/firmware/scmi/mailbox_agent.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2026-02-26 08:49:15 -0600
committerTom Rini <trini@konsulko.com>2026-02-26 09:04:47 -0600
commite2dfabcab02dd11942a23d43397b4b55a79b6c78 (patch)
tree1e60d2c76c421bee801b39a826ecf4bce15005a6 /drivers/firmware/scmi/mailbox_agent.c
parent7995bf8dea2d5b3eb7fcb836636f4773924ec35d (diff)
parentefc9be77d851b98b38afcfb4e46d17703057efad (diff)
Merge tag 'fsl-qoriq-next-2026-02-25' of https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq
For SCMI, Power Domain and IOMMU, validate device tree node before continuing, to avoid boot failure.
Diffstat (limited to 'drivers/firmware/scmi/mailbox_agent.c')
-rw-r--r--drivers/firmware/scmi/mailbox_agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/scmi/mailbox_agent.c b/drivers/firmware/scmi/mailbox_agent.c
index 16a82f55ab7..cda94565de5 100644
--- a/drivers/firmware/scmi/mailbox_agent.c
+++ b/drivers/firmware/scmi/mailbox_agent.c
@@ -101,7 +101,7 @@ static int scmi_mbox_get_channel(struct udevice *dev,
struct scmi_mbox_channel *chan;
int ret;
- if (!dev_read_prop(protocol, "shmem", NULL)) {
+ if (!dev_has_ofnode(protocol) || !dev_read_prop(protocol, "shmem", NULL)) {
/* Uses agent base channel */
*channel = container_of(base_chan, struct scmi_channel, ref);