diff options
author | Bartosz Golaszewski <[email protected]> | 2024-08-23 11:33:22 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-09-03 17:10:57 -0500 |
commit | f1536585588ba630c533b6ffbca8ad8424aa5c39 (patch) | |
tree | ced8d51f9c442db16d539f20ea5d8a2461257f85 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 8400291e289ee6b2bf9779ff1c83a291501f017b (diff) |
PCI: Don't rely on of_platform_depopulate() for reused OF-nodes
of_platform_depopulate() doesn't play nicely with reused OF nodes - it
ignores the ones that are not marked explicitly as populated and it may
happen that the PCI device goes away before the platform device in which
case the PCI core clears the OF_POPULATED bit.
Unconditionally unregister the platform devices for child nodes when
stopping the PCI device.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 8fb18619d910 ("PCI/pwrctl: Create platform devices for child OF nodes of the port node")
Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Manivannan Sadhasivam <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions