summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2026-10-08 16:05:00 +0800
committerBjorn Helgaas <bhelgaas@google.com>2026-10-21 13:15:28 -0500
commit7bf2ebcb7ca1e8814d3d0e35214a8e4b2193a619 (patch)
tree35a600714e273b1ed4b3d0af603d14d735de5790 /tools/perf/scripts/python
parentee450e3a2d334c7e6383d8a55ad2d53b3822bacc (diff)
PCI/pwrctrl: Only destroy devices created by pwrctrl core
pci_pwrctrl_create_device() only creates platform devices for OF nodes that pci_pwrctrl_is_required() accepts, but pci_pwrctrl_destroy_device() unregisters the platform device of every available child node without that check. Nodes under a PCI host controller that are not pwrctrl devices may have been populated by another mechanism. Destroying them here would tear down devices owned by other code. Mirror the check done at creation time so that only devices created by the pwrctrl core are removed. Fixes: 4c4132489201 ("PCI/pwrctrl: Add APIs to create, destroy pwrctrl devices") Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/1791446700-100166-1-git-send-email-shawn.lin@rock-chips.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions