[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 35b886726c
commit acf2992adb

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;
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_SYSTEM))
{