[DM/OFW] check available in stub probe

device node should not probe in stub if device is not available.
This commit is contained in:
GUI 2025-03-05 09:23:03 +08:00 committed by Rbb666
parent f7d542155f
commit 4d6b9a1330
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ struct rt_ofw_stub *rt_ofw_stub_probe_range(struct rt_ofw_node *np,
const struct rt_ofw_stub *stub = RT_NULL; const struct rt_ofw_stub *stub = RT_NULL;
if (np && stub_start && stub_end && if (np && stub_start && stub_end &&
rt_ofw_node_is_available(np) &&
!rt_ofw_node_test_flag(np, RT_OFW_F_READLY) && !rt_ofw_node_test_flag(np, RT_OFW_F_READLY) &&
!rt_ofw_node_test_flag(np, RT_OFW_F_SYSTEM)) !rt_ofw_node_test_flag(np, RT_OFW_F_SYSTEM))
{ {