diff options
| author | Peng Fan <[email protected]> | 2026-02-10 16:12:14 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-02-26 09:04:46 -0600 |
| commit | 3ee1408eeb7352d770bbf063df85fa23cd6b79a4 (patch) | |
| tree | 2e3a145c6fe652245cb4064d34c47657be5879c9 /drivers/power | |
| parent | 7995bf8dea2d5b3eb7fcb836636f4773924ec35d (diff) | |
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 <[email protected]>
Closes: https://lore.kernel.org/u-boot/[email protected]/
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions
