Peng Fan 3ee1408eeb firmware: scmi: Validate device tree node before setup channel
SCMI base protocol device does not have a device tree, it should use and
need to use the agent base channel.

For scmi_base.[x], there is no real device tree node for it. ofnode_null() is
assigned as the device tree node for scmi base protocol device:
commit 7eb4eb541c14 ("firmware: scmi: install base protocol to SCMI agent")

However with recent update in commit 0535e46d55d7
("scripts/dtc: Update to upstream version v1.7.2-35-g52f07dcca47c"),
SPL panic in fdt_check_node_offset_()->fdt_next_tag(), because offset is -1
and SPL_OF_LIBFDT_ASSUME_MASK is 0xFF.

So add a check in x_get_channel() to validate the protocol devices'
ofnode.

Reported-by: Ye Li <ye.li@nxp.com>
Closes: https://lore.kernel.org/u-boot/939a9696-27fa-45a1-b428-feffe21ac6d5@oss.nxp.com/
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2026-02-26 09:04:46 -06:00
..
2025-10-30 12:32:12 -06:00
2026-01-15 09:25:21 +01:00
2026-01-21 12:05:15 -06:00
2026-01-02 15:51:54 -06:00
2025-08-27 15:49:59 +08:00
2025-08-14 10:58:46 -06:00
2026-01-14 16:25:09 +01:00
2025-10-14 10:42:27 +03:00
2026-02-02 14:24:40 -06:00
2025-11-07 15:34:22 -06:00